Apple推送通知仅适用于开发而非生产

时间:2014-10-10 00:09:03

标签: ios apple-push-notifications

我只在生产模式下遇到苹果推送通知服务(APNS)...我在我的虚拟服务器上使用相同的PHP代码进行生产和开发,所以我认为问题不在那里...... 我也经历了很多资源尝试他们的建议,但没有任何方法可以帮助我:

1)Push notifications work for Ad Hoc, but not when downloaded from the Apple store

2)apple push notification not working in production ......还有很多其他人

所以,我尝试了#34;观察推送状态消息" (https://developer.apple.com/library/ios/technotes/tn2265/_index.html#//apple_ref/doc/uid/DTS40010376-CH1-TNTAG24)在文档中,我试图注销我的APNS推送结果!!

我在终端中使用此方法(在我的iMacPro上):

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

输出对我来说很奇怪,我不知道出了什么问题?

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

抱歉很久,但我试着解释整个问题......

1 个答案:

答案 0 :(得分:0)

最后,我解决了它!!!!!!!!!!!! 我觉得这在Apple方面很疯狂。无论如何,在尝试过这里和那里的每件事之后,问题只能通过以下方式解决: &#34;删除我存储的deviceTokens表并上传新的令牌!!!!&#34;

不确定是什么问题,但现在一切正常。