苹果推送通知仅用于开发,而不是工作进行生产 [英] Apple push notification is working only for development and not for production

查看:206
本文介绍了苹果推送通知仅用于开发,而不是工作进行生产的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我坚持只生产模式的苹果推送通知服务(APNS)...我使用相同的PHP code为生产和发展我的虚拟服务器上,所以我相信这个问题是不存在的...
另外我经历了很多的资源去尝试他们的建议,但没有为我工作:

I am stuck with apple push notification services (APNS) only in the production mode... I am using the same php code on my virtual server for both production and development, so I believe the problem is not there ... Also I went through a lot of resources trying their suggestions but nothing worked for me:

1)<一href=\"http://stackoverflow.com/questions/2614988/push-notifications-work-for-ad-hoc-but-not-when-downloaded-from-the-apple-store\">Push通知特设工作,而不是从苹果商店下载时

2)<一href=\"http://stackoverflow.com/questions/15595720/apple-push-notification-not-working-in-production\">apple推送通知生产不工作
......和许多其他

2) apple push notification not working in production ... and many others

所以,我想推观察状态信息(<一href=\"https://developer.apple.com/library/ios/technotes/tn2265/_index.html#//apple_ref/doc/uid/DTS40010376-CH1-TNTAG24\" rel=\"nofollow\">https://developer.apple.com/library/ios/technotes/tn2265/_index.html#//apple_ref/doc/uid/DTS40010376-CH1-TNTAG24)在文档中,我试图登出我的APN推动的结果!

So, I tried "Observing Push Status Messages" (https://developer.apple.com/library/ios/technotes/tn2265/_index.html#//apple_ref/doc/uid/DTS40010376-CH1-TNTAG24) in the document and I tried to log out the results of my APNS pushing!!

我按照终端这个方法(在我iMacPro):

I follow this method (on my iMacPro) in terminal:

1-$ sudo defaults write /Library/Preferences/com.apple.apsd APSWriteLogs -bool TRUE
2-$ sudo defaults write /Library/Preferences/com.apple.apsd APSLogLevel -int 7
3-$ sudo killall apsd

和输出是很奇怪我,我不知道有什么错?

and the output was very strange to me, and I have no idea what's wrong?

Failed to send activation record to service com.apple.ManagedClient.enroll
Added service com.apple.ManagedClient.enroll to activation record listener list
<APSPreferences: 0x7f8520f005c0>: Preferences may have changed, checking for any relevant changes

抱歉是很长,但我试图解释整个问题...

Sorry for being long, but I tried to explain the whole problem ...

推荐答案

最后,我解决了!!!!!!!!!!!!
这是来自苹果方面我想疯了。无论如何,在这里和那里尝试每一件事情之后,这个问题简单地加以解决方式:
删除deviceTokens的表我保存并上传新的令牌!!!!

Finally, I solved it!!!!!!!!!!!! This is crazy from Apple side I guess. Anyway, after trying every thing here and there, the problem solved simply by: "Deleting the table of deviceTokens I stored and upload the new tokens!!!!"

不知道是什么问题,但现在一切工作正常。

Not sure what was the problem, but now everything is working fine.

这篇关于苹果推送通知仅用于开发,而不是工作进行生产的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆