Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apple push notification service, when device is off line

My push notification service in sandbox development phase works well when the device is online. It keeps getting push messages.

However if a message is sent from te provider (server) when the device is offline (no 3g or wifi), the device is not receiving the push message when it gets online.

Any thoughts on this?

like image 689
Sukitha Udugamasooriya Avatar asked Sep 02 '25 05:09

Sukitha Udugamasooriya


1 Answers

UPDATE New rephrased documentation is here

Thanks AL

After going through Apple's Quality of Service https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html

It retains only one notification per application on a device:

Apple Push Notification Service includes a default Quality of Service (QoS) component that performs a store-and-forward function. If APNs attempts to deliver a notification but the device is offline, the QoS stores the notification. It retains only one notification per application on a device: the last notification received from a provider for that application. When the offline device later reconnects, the QoS forwards the stored notification to the device. The QoS retains a notification for a limited period before deleting it.

like image 197
Sukitha Udugamasooriya Avatar answered Sep 04 '25 23:09

Sukitha Udugamasooriya