Apple's APNS Delivery is Sometimes Slow

2020-02-28 09:34发布

问题:

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.

We hold the connection open (as required by Apple) and reset connections on errors as also documented (typically when they close the connection).

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.

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.

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.

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?

It appears the devices we're testing on that seem to have the most issues are with Vodafone (Australia).

回答1:

Going on some previous information in other threads, it appears that it may not be 'uncommon' if a delay occurs.

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.

Source: How much delay of ios push notification? and also: Apple's APNS Docs