Push Notification Certificates let you send notifications to users of your app. They must be created before a Provisioning Profile since they are embedded within the Provisioning Profile.
Note: While Push Notification Certificates are optional for regular iOS apps, they are required for Newsstand apps.
If you are unsure if your Provisioning Profile has Push Notifications enabled, read the article "iOS - Check if your Provisioning Profiles Accept Push Notifications."
Before You Begin
- Be sure to sign-up for an iOS Developer Account
- Make sure you have created an App ID in iTunes Connect (for more information, read the article "iOS - Creating an App ID.")
- Make sure you have created and installed a Distribution Certificate (for more information, read the article "iOS - Creating a Distribution Certificate.")
How to Create a Push Notification Certificate
1. Login to the iOS Dev Center <https://developer.apple.com/devcenter/ios/> and click on "Certificates, Identifiers & Profiles."
5. Place a checkmark next to "Push Notifications" and then, under Production SSL Certificate, click on the "Create Certificate" button.
6. On the screen that appears, click on the "Continue" button.
Note: Be sure you have your Distribution Certificate available before proceeding. The certificate is referred to as a CSR file and has a default extension of ".certSigningRequest." If you don't, please read the article "iOS - Creating a Distribution Certificate and .p12 File."
7. Click on the "Choose File" button and select the CSR (Certificate Signing Request) file you have downloaded, then click on "Generate."
8. Click on the "Download" button to download your new Push Notification Certificate and then click on "Done."
How to Export a Push Notification Certificate as a .p12 File
1. In Keychain Access, select the certificate entry and right-click on it to select "Export."
Note: All certificates you have installed will be in the "login" keychain (Label 1) under the category "My Certificates" (Label 2).
2. In the window that appears, add "Push-" to the file name, make sure the File Format is set to "Personal Information Exchange (.p12)" and click on "Save" to save it to your machine.
3. When asked for a password, leave it blank and click on "Ok."
Note: You MUST NOT enter a password in this step, otherwise the Mag+ Publish portal will be unable to build your app.
5. Your .p12 file will be saved in the location you specified.
Note: You can now upload your .p12 file to the Mag+ Publish portal and use it to create a Provisioning Profile.
6. Login to the Mag+ Publish portal <https://publish.magplus.com> and go to Apps > iOS > Apple Push Notifications.
App Creation: Next Steps
Creating push notification certificates are only one step in creating an iOS app for distribution. Please refer to the additional articles in this section for information on setting up provisioning profiles and configuring in-app purchases. These items correspond to settings in the Mag+ Publish portal. The portal will actually build your customized iOS app. You will then upload this app to the Apple App Store or to your own internal distribution servers (for enterprise customers only).