iOS - Renewing a Push Notification Certificate

Push Notification Certificates let you send notifications to users of your app. They expire one year after creation and must be renewed in order to let you send in-app notifications to your end-users. One month prior to expiration, the iOS Dev Center and the mag+ Publish portal will email a warning to your associated brand admin.

Note: While Push Notification Certificates are optional for regular iOS apps.

Push Notification Certificates require a valid, unexpired Distribution Certificate. If you have created a new Distribution Certificate, you will need to create a new Push Notification Certificate and upload it to the mag+ Publish portal (see the "Before You Begin" section below).

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

Make sure you have a valid, unexpired Certificate Signing Request (CSR file) downloaded to your machine. When downloaded, the file has a default ".certSigningRequest" file extension.  For more information on how to request a CSR file please see the first 4 steps in our "iOS - Creating a Distribution Certificate and .p12 File." article.

Important Information

Push Notification Certificates are considered a Live feature. So long as the Distribution Certificate is valid and unexpired, you can upload a new Push Notification Certificate to the mag+ Publish portal and not have to build a new app.

How to Renew a Push Notification Certificate

1. To login into the iOS Developer Console https://developer.apple.com/
 

2. Click "Certificates, Identifiers & Profiles."

3. Click on the Identifiers > App IDs

4. Click on the App ID associated with your app and scroll down to Push Notification section.

5. In the screen that appears, scroll down to Push Notification, click on the "Configure" button.

6. Under Production SSL Certificate, click on the "Create Certificate" button.

Note: Be sure you have your valid, unexpired 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 on your machine, then click on "Continue."

8. Click on the "Download" button to download your new certificate and then click on "Done."

9. Double-click the ".cer" file to install it in Keychain Access.

Note: It will have the name "Apple Production iOS Push Services" and will expire one year from today's date. You can then export it as a .p12 file (see below) and upload it to the mag+ Publish portal.

How to Export Your New 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.

Note: mag+ Recommends changing the name of the certificate to reflect what it is used for. This ensures that you do not get confused about which certificate belongs to which apps, which is a distribution versus a push notification certificate, etc.
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.
When asked for a password, leave it blank and click on "Ok."

4. When asked for the computer password, enter it and click on "Allow."

When asked for the computer password, enter it and click on "Allow."

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.
Your .p12 file will be saved in the location you specified.

6. Login to the mag+ Publish portal  and go to Apps > iOS > Apple Push Notifications.

7. Delete the existing Push Notification Certificate, upload the .p12 version of your new Apple Push Notification Certificate you created above, and then click "Save."

Certificate Renewal: Next Steps

As stated previously, new Push Notification Certificates do not require a new app build unless you have created a new Distribution Certificate. Once uploaded to the mag+ Publish portal, you can send push notifications to your end-users.

0 Comments

Please sign in to leave a comment.
Powered by Zendesk