【发布时间】:2014-10-10 00:09:03
【问题描述】:
我只在生产模式下使用苹果推送通知服务(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 ...和许多其他人
所以,我在文档中尝试了“观察推送状态消息”(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
对不起,我试图解释整个问题......
【问题讨论】:
-
你有两种证书,一种用于开发,另一种用于生产,在设备上使用,你使用不同的吗?,raywenderlich.com/32960/… 检查部分 [dev SSL cert n production SSL cert]
-
我真的很清楚这一点,我有“apns-dev.pem”和“apns-prod.pem”,并且我遵循了相同的教程......所以,我确信我我正在使用 pans-prod.pem,但它没有交付
标签: ios apple-push-notifications