Skip to content

Generate an iOS Push Certificate

What are iOS Push Certificates?

The Apple Push Notification Service (APNs) is a service created by Apple Inc. to securely send push notifications from third party apps to their users' Apple devices.

Appgain.io sends notifications through Apple's servers to your application. To ensure that unwanted parties are not sending notifications to your application, Apple needs to know that only your servers can connect with theirs. Apple therefore requires you to create an SSL certificate to be able to send push notifications.

The goal of this section is to provision your app with Apple, and grant Appgain.io access to manage your notifications.

Requirements

Step 1: Creation of Push Certificate

  • Specify App name, Bundle ID and select Push Notifications, then Continue

enter image description here

  • Click Register, then Done to complete app registration

enter image description here

  • Now, you can see the app listed in App IDs

enter image description here

Generate a Certificate from Key chain Access

  • Launch the Key chain Access application in your Mac OS X and Select Keychain Access -> Certificate Assistant -> Request a Certificate From a Certificate Authority

enter image description here

  • Enter email address and check the 'Saved to disk' option, then click Continue

enter image description here

  • Save certificate

enter image description here

Generate a Development Certificate

  • Go back to developer account and select app from App IDs and click Edit

enter image description here

  • Scroll Down to Development SSL certificates and click Create Certificate

enter image description here

  • Click Continue

enter image description here

  • Choose certificate file created from Keychain Access in previous section and click Continue

enter image description here

  • Download Development Certificate and click Done to finish process

enter image description here

Generate APNS .p12 certificate

  • Double click Development certificate generated in previous step to add it to Keychain Access. Go to Keychain Access, select login keychain and My Certificate from side menu. Find app certificate and right click to export it

enter image description here

  • Enter certificate name and click Save

enter image description here

  • Keep the password empty and certificate and click OK

    Appgain don't support p12 files with password

enter image description here

  • Enter your computer admin password to finish the process

enter image description here

Step 2: Upload Your Push Certificate to Appgain.io

  1. Open Appgain dashboard
  2. Go to Settings > Basic Settings/Communication Channels
  3. Navigate to iOs Push tab
  4. enter your App Bundle ID and upload the two .p12 files