接收推送通知的问题 -
我有一个问题,每次将通知推送到设备时我都没有收到通知。我偶尔会收到它们,或者在很长一段时间延迟后收到它们。我在服务器端使用 APNS 和 Ruby on Rails 的开发证书。服务器确实会向Apple服务器发送通知,只有当我收到通知时我才遇到问题。
我最初认为这是全局通知的问题(隧道被关闭),为了测试它,我向我的设备发送了一条通知到 Skype,该通知几乎立即收到。所以,我真的不明白这里有什么问题。我是否遗漏了什么,或者如何深入解决它。
推送通知是否可靠以及涉及的延迟是多少?任何帮助将不胜感激。谢谢
I have a problem where I don't receive notifications every time I push them to the device. I do receive them occasionally or after a big delay. I'm using the development certificate for APNS and Ruby on Rails on the server side. The server does send notifications to the Apple server its only when I'm receiving them I have a problem.
I initially thought it was a problem with global notifications (tunnel being closed) and to test it I sent my device a notification to Skype which was received almost instantaneously. So, I really dont understand whats the problem here. Is there anything I'm missing or how do I trouble shoot it in depth.
Are push notifications reliable and whats the latency involved? Any help will be greatly appreciated. Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在开发中,推送通知的发送并不可靠。某些通知可能会延迟到达。您可以尝试通过在即席中构建应用程序来在生产中发送通知。
如果您在不同的 iPhone/iPod 上没有得到相同的结果,您可以尝试重置设备的网络设置。
In development, the sending of push notification is not reliable. Some notifications may arrive with some delay. You can try to send notifications in production by building your app in adhoc.
If you haven't the same result with different iphone/ipod, you can try to reset network settings device.