Recently, to do a project that requires Apple push notifications, we have studied the use of push certificates, with the following approximate steps:
1. Authorization file. Certsigningrequest generation (required to generate the certificate later.) )
After filling out the information, the file will be generated in the selected location: Certificatesigningrequest.certsigningrequest
2. Generation of certificates. (Login: https://developer.apple.com/account/overview.action)
- Create an app ID that allows notifications to be sent, and the app ID that allows notifications can only select the explicit app ID (the notification must have a single ID).
- To create development Certificate and production Certificate respectively, select the Apple Push Notification service SSL feature option.
Select the app ID that you created when you first step. After creation, download certificate and install. The details of the app ID created in the first step are now available, and both the Push Notification dev and dis are green:
- Next follow the general steps to create the corresponding development Provisioning profile (a new development Certificate without notification) and distribution Provisioning profile (a new distribution Certificate without notification), select the app ID that was created with the notification feature in the first step and download the installation.
This completes the certificate generation. (There are 2 types of iOS certificates, 1 are development certificates for you (developers) to do real-machine testing, and 1 are publishing certificates, publishing certificates and distributing them to the App Store and releasing the test ad hoc certificate.)
therefore, to test the release environment push needs to use the Ac Hoc certificate test, when creating the certificate, you need to see a certificate of ad hoc. )
IOS: Apple push----the generation of push certificates