pankaj nigam
pankaj nigam

Reputation: 401

How APNS detect Device is online / offline /switch of

I have read APNS cache last notification for some time if device is offline/switch off state. My question is how APNS identify device status ?

Upvotes: 1

Views: 632

Answers (1)

Paulw11
Paulw11

Reputation: 114836

The APNS service on the iOS device maintains a persistent connection to Apple's servers. When a push message arrives at Apple's servers for a device it is delivered over that connection.

If the destination device is not currently connected when a push arrives then Apple holds that message. If the same app sends another push to the same device then the new push is held and the previous one is lost.

When the iOS device finally reconnects to the network and Apple's server, held pushes are delivered.

Upvotes: 1

Related Questions