苹果推送通知仅用于开发,而不是工作进行生产
我坚持只生产模式的苹果推送通知服务(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)Push通知特设工作,而不是从苹果商店下载时
2)apple推送通知生产不工作
......和许多其他
2) apple push notification not working in production ... and many others
所以,我想推观察状态信息(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.