Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apple's APNS Delivery is Sometimes Slow

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).

like image 591
Darren Nolan Avatar asked Sep 06 '12 00:09

Darren Nolan


People also ask

Why am I getting notifications late on my iPhone?

Disable Low Power Mode The low power mode disables background activities to conserve the battery and ensure that your iPhone runs longer. However, it also prevents any aggressive push of notifications from the apps. That's why you may notice a delay in notifications.

How fast is APNs?

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.

What port does APNs use?

Android. Port 443 (HTTPS only)

Are Apple APNs free?

Apple does not charge a separate fee for utilizing the push notification service. Your only cost is a server that will be sending the push notifications to Apple.


1 Answers

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

like image 59
pwae Avatar answered Oct 20 '22 01:10

pwae