I. Developing the push feature of iOS programs, what iOS needs to do
1. Request Apple to get Devicetoken
2. Get Apple back to Devicetoken
3. Send Devicetoken to the company's servers
4. Listen for user clicks on notifications
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 release programs to your computer
3> qq.mobileprovision: A computer can publish a program
Certificate configuration 01– Create app ID
Attention
Remote push can only be tested on the real machine! So first to ensure that the real machine debugging environment no problem!
The first step in remote push is to create an app ID
The purpose is to show which app needs to use the push service
The app ID created for the remote push service must be the full name, not with *
Certificate configuration 02– Create APNs SSL certificate for app ID
Real-APNs SSL certificate: on which computer to debug the app with push service
APNs SSL certificate used by the Publisher: on which computer to publish the app with push service
Finally get 2 APNs SSL certificates
APNs Development IOS: A certificate for a real-computer-tuned trial
APNs Production IOS: Publishing a certificate for a program
Certificate configuration 03– Generate profile
The purpose of the description file is to describe
Which device is going to debug which program on which computer?
will eventually get 3 files
Aps_development.cer: Real-machine tuning trial
Aps_production.cer: Published by the program
Netease_news_iphone5_home.mobileprovision: Description File
Recommendation: Install the CER file first, and then install the Mobileprovision file
apns-Remote Push