The working mechanism of iOS message push can be simply summed up:
Provider refers to the push server for an iphone software, APNs is the Apple push Notification service abbreviation, is a server.
Can be divided into three stages:
Phase one: The application packages the message to be sent, the identity of the iphone, and sends it to APNS.
Phase II: APNs in its own list of iphone's registered push services, look for an iphone with a corresponding identity and send the message to the iphone.
The third stage: The iphone sends the message to the appropriate application and follows the settings to eject the push notification.
From what we can see:
1. Application registration message push.
2. iOS obtains device token from APNs server and the application receives device token.
3. The application sends device token to the push server program.
4. The service-side program sends messages to the APNS service.
5. The APNs service sends the message to the iphone app.
iOS messaging push mechanism