IOS 8 静默推送通知在没有 Xcode 的情况下不起作用 [英] IOS 8 Silent push notification not working without Xcode
问题描述
我正在尝试测试静默推送通知,我注意到我的 Iphone (IOS 8) 只能在我的设备连接到 Xcode 时接收静默通知.当它被拔掉时,我只能在大约 5-10 次尝试中收到一次无声推送.这仅发生在 IOS 8 上,因为我有另一部手机在 IOS 7 上运行,甚至没有错过任何静音推送.有人遇到同样的问题吗?
I'm trying to test out the silent push notification and I notice that my Iphone (IOS 8) can only receive silent notifications when my device is connected to Xcode. While it is unplugged, I can only receive one silent push in probably 5-10 tries. This only happen to IOS 8 because I have another phone which is running on IOS 7 and not even a single silent push is missed. Anyone face the same issue ?
更多详情:如果手机连接到电源,我可以完美地获得静音推送通知...
More details: If the phone is connected to power source, I'm able to get silent push notifications perfectly...
推荐答案
似乎您在从服务器端与 APN 交互时使用了调试证书.它仅在设备处于调试模式时有效.
Seems like you are using Debug certificate while interacting with APNs from the server side. And it only works while a device is in the debug mode.
对于不受限制的推送通知处理,您需要使用发布证书.
For untethered push notification handling, you need to use Release certificate.
这篇文章可以更好地理解如何使用带有 APNs 的证书:https://quickblox.com/developers/How_to_create_APNS_certificates
This article would give a better understanding on using certificates with APNs: https://quickblox.com/developers/How_to_create_APNS_certificates
这篇关于IOS 8 静默推送通知在没有 Xcode 的情况下不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!