For iOS Apps, not websites
This guide is for developers implementing iZooto in an iOS application for distribution on Apple's App Store. This guide should not be used for Web Push.
An iOS Push Certificate is required for notification delivery to all iOS apps.
- An iOS mobile app. (This is not for websites / web push)
- A Paid Apple Developer Account with Admin Role.
- An iZooto Account, if you do not already have one.
- A Mac computer with Xcode 11+
- Your Xcode project should have the Push Notification capability added. Otherwise, your project may not be shown in the Apple Developer Center.
Open the Keychain Access app on your Mac OS X system. By default, it will be located in Applications > Utilities > Keychain Access.
Select Keychain Access > Certificate Assistant > Request a Certificate From a Certificate Authority.
Next, select the Save to disk option and enter your information in the required fields. This creates a certification request file that will be used later.
Select your Identifier in your Apple Developer Account under Certificates, Identifiers & Profiles > Identifiers
Scroll down to the bottom and enable Push Notifications for your identifier.
Next, go to Certificates and create a new certificate by clicking the blue + (plus) button.
Under Services, select Apple Push Notification service SSL (Sandbox & Production) and click Continue.
The certificate will be applicable to both Sandbox and Production environments, so you do not need a separate key for each one.
Choose an App ID from the App ID pop-up menu, and click Continue.
Click Choose File, select the CertSigningRequest file you saved in the first step, click Open, and then click Continue.
Click Download to save the certificate to your computer.
.cer file you downloaded in the last step by double-clicking on it in Finder.
After a few seconds, the Keychain Access program should open. Select Login > My Certificates, then right-click on your key in the list and select Export.
Give the file a unique name using the
.p12 extension, and click Save. You will have an option to protect the file with a password.
Navigate to your certificate directory in the terminal and execute the following command.
openssl pkcs12 -in YOUR_CERTIFICATE_NAME.p12 - out YOUR_CERTIFICATE_NAME.pem -nodes
You will now have a
Once you have the APNS .p12 certificate, proceed to add your iOS app to your iZooto account.
You now have a certificate to send push notifications from your iOS app.
If you have not already done so, proceed to install the iZooto SDK in your app.
Updated 7 months ago