为什么在相同 wifi 条件下,与 iPod Touch 4 相比,iPhone 4S 上的推送通知延迟到达?
我有两台设备:iPhone 4S 和 iPod Touch 4。它们具有相同的 iOS 5.0.1。我发现一个有趣的行为:我的 iPod Touch 通常首先收到来自邮件或其他应用程序的通知。然后大约 10 秒或更长时间后,我的 iPhone 4S 收到相同的通知。即使他们共享同一个 wifi,也会发生这种情况。有人遇到同样的问题吗?或者有人对此有任何想法吗?
I have two devices: iPhone 4S and iPod Touch 4. They have the same iOS 5.0.1. I find an interesting behavior: my iPod Touch usually gets the notification from Mail or other apps first. Then about 10 seconds later or maybe longer, my iPhone 4S gets the same notification. This occurs even if they share the same wifi. Does anyone meet the same issue? Or Does anyone have any idea about this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
考虑到 WiFi 和 3G 之间的选择,APNS 会更喜欢使用 3G,因此如果可能的话,向 iPhone 发送的推送通知将通过 3G 到达。
您可以测试与 3G 的断开连接,以便两台设备将使用同一网络。
Given the choice between WiFi and 3G, APNS will prefer to use 3G, so the Push Notification to the iPhone are arriving through 3G if it is possible.
You can test disconnecting from 3G and so both devices will use the same network.
这是因为推送通知不是即时的。这取决于服务器负载、网络拥塞等。
我有一个应用程序可以向几千人发送推送通知。我曾经坐在一个房间里,里面有 10 台设备(多台 iPhone、iPad 和 iPod touch),所有设备都使用同一个 Wi-Fi 连接,推送通知的时间各不相同,有时可能长达 30 秒。
It's because the push notification isn't immediate. It depends on server loads, network congestion, etc.
I've got an app that sends a push notification to a few thousand people. I've been sat in a room with 10 devices (a number of iPhones, iPads, and iPod touches) all on the same wifi connection and the push notification has varied between them all and can be up to 30 seconds at times.