Remote notification
Notifications from remote servers to clients (requires networking), remote Push service, also known as APNs (Apple push Notification services)
Why do I need remote push notifications?
1. Traditional access to data limitations: As long as the user closes the app, they can't communicate with the app's server and get the latest data content from the server.
2. Remote push notification can solve the above problems: no matter whether users open or close the app, as long as the Internet, can receive the server push remote access, all Apple devices, in the networked state, will be with Apple's server to establish a long connection. Long-Connection: Time calibration, system upgrade, find the benefits of my iphone long connection: Fast data transfer speed, keep up to date status
I. APNs push notifications in detail? Workflow:1. Register APNS message push with program.
2. iOS gets devicetoken from APNs server and receives device token from the program. 3. Use the program to send device token to the program's push server program.
4. The service-side program sends messages to the APNS service.
5. The APNs service sends the message to the iphone application.
Two. Debugging the remote push feature of iOS, prerequisites:
1. Real Machine
2. Debug the required certificate file for push
1> Aps_development.cer: A computer can debug an app's push service
2> Ios_development.cer: The ability to debug a computer with a real machine (commissioning device)
3> iphone5_qq.mobileprovision: A computer can use a device to debug a program
Three. Publish Apps with push service
1. Aps_production.cer: If you publish a program that contains a push service, you must install this certificate
2. Ios_distribution.cer: The ability to publish programs to your computer
3. Qq.mobileprovision: A computer can publish a program
Push Notifications (ii) remote notifications