Remote push can resolve a push message that cannot be received when the user closes the program. When the client uses the remote push feature, the server can receive a push message regardless of whether the user has closed the program.
Apple's remote push is based on long connections, and by default all Apple devices are connected to Apple's APNs server as long as the device is networked.
Benefits of long connections: The Apple server can proactively send messages to the client or retrieve my device (when the device is lost).
Remote Push step: Client gets Devicetoken steps to Apple server: client sends Bundleid and device Udid to Apple APNs Server, Apple returns devicetoken to client as unique identity. The client then transmits the Devicetoken to our company's servers.
To debug a remote push condition: Must be a real machine
Configuration of the Push certificate: 1, if you are developing a debug push, configure the developed CER certificate aps_development.cer and description file
2, if it is the Publisher debug push, configure Aps_production.cer and profile.
How iOS implements remote push messages