问题描述
使用我们自己的内置 APNS 推送系统(用 PHP 编写),我们在某些事件上推送到我们的设备.设备会立即收到某些通知,而某些设备可能需要长达 15 分钟才能看到.
Using our own inbuilt APNS push system (written in PHP), we push to our devices on certain events. Some notifications are received by devices fairly instantaneously, while some devices can take up to 15 minutes to see.
我们保持连接处于打开状态(根据 Apple 的要求)并在错误时重置连接(通常在他们关闭连接时).
We hold the connection open (as required by Apple) and reset connections on errors as also documented (typically when they close the connection).
一切正常,我可以随时将一条消息放入我们的系统队列中,然后我的 ipod touch 会在几秒钟内收到通知.
All that works fine, I can at any point put into our system queue a message to my ipod touch, and will receive notification within seconds.
但有时,在其他设备(例如 3G iPhone 设备)上,APNS 通常可以正确交付 - 但可能需要长达 15 分钟才能到达.
Sometimes however, on other devices (3G iPhone devices for example) APNS is more often than not, delivered correctly - but can take up to 15 minutes to arrive.
看我的应用程序,我可以看到通知只推送一次,非常快,而且没有错误.但是,它们在交付速度方面似乎无法预测.
Watching my application, I can see the notifications are pushed only once, very quickly, and without errors. However, they seem to be unpredictable in terms of delivery speed.
我了解 APNS 更喜欢使用 3G,因此如果连接有问题 - 这可能会导致设备上的 APNS 连接重新初始化时最多延迟 15 分钟.
I understand that APNS prefers using 3G, so if connectivity is an issue - this can cause delay up to 15 minutes while APNS connectivity on the device is reinitialized.
在使用 APNS 时,在我们的终端或现实生活中,是否还有更多方法可以提供成功(且快速)的 APNS 消息?
Is there something more that can be done in delivering successful (and quick) APNS messages on our end or a fact of life when using APNS?
我们正在测试的设备似乎问题最多的设备是 Vodafone(澳大利亚).
It appears the devices we're testing on that seem to have the most issues are with Vodafone (Australia).
推荐答案
继续其他线程中的一些以前的信息,如果发生延迟,它似乎并不少见.
Going on some previous information in other threads, it appears that it may not be 'uncommon' if a delay occurs.
虽然在大多数情况下您应该会在几秒钟内完成交付,但显然它可能长达 30 分钟,这仅仅是由于网络问题,例如移动网络掉线和其他因素.
While in most cases you should expect a delivery in seconds, apparently it can be up to 30 minutes, just due to networking issues such as mobile network drop-outs and other factors.
来源:ios推送通知延迟多少?还有:Apple 的 APNS 文档
这篇关于Apple 的 APNS 交付有时很慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!