I was reading about APNs and was curious to know how does the APNs server locate a device based on the device token. The device token is received by the device on app launch and is then given to the provider. The provider sends this token with the payload to APNs server. How does APNs determine the IP address (assuming it does need IP and port) of the device to which it needs to send the notification?
2 Answers
It seems that iOS device every N-minutes connect APNs and asks if there are new Push-notifications for him.
Or may be every N-minutes he sent its current contacts (ip, port, etc).
You shouldn't worry about it anywhere =)
1 Comment
Hetal Vora
Yeah, I am not worried about it :) But just curious to know how it works.