iOS Push Notifications

Hey, we can setup iOS certs for you. Email us.

iOS push notifications require that you build your app with the correct certificates, and use a provisioned device to test. You will create 2 .p12 files that are password protected, along with 1 provisioning profile.

iOS Step I, create app .p12

In order to use push notifications, your app needs to be built with a .p12 file and a .mobileprovision file from your developer account.

1. Create .p12 file for Phonegap Build

a) Login to your iOS developer account:    https://developer.apple.com/account, go to "Certificates, Identifiers, and Profiles."

b) Click on Certificates->Production, then click the plus sign at the top right.

c) Choose "App Store and Ad Hoc"

d) Follow the prompts to generate and upload a Certificate Signing Request. This is done in Keychain Access on a mac under the Keychain Access menu at the top -> Certificate Assistant.

e) Click generate, and download the certificate file. It is best to name this file uniquely, such as adhoc-myname-thedate.

Next you need to convert the certificate you just downloaded into a .p12 file.

f) Double click the certificate you just downloaded, this will open Keychain Access. Find and select the certificate, it will say "iPhone Distribution: Your name."

g) Expand the certificate name, and select both the certificate and the key below it.

h) Right click with both lines selected, and choose Export. Save the file and give it a password.

This is the file you will upload to Phonegap Build along with your provisioning profile (below).

iOS Step II, create Production SSL certificate and .p12

1. Create an app ID with push enabled

First, you need to create an App ID.  In myapppresser.com, go to App Customizer => Settings to view or change your app ID.

a) Login to your iOS developer account:    https://developer.apple.com/account, go to "Certificates, Identifiers, and Profiles."

b) Under "Identifiers," click App IDs.

c) Click the plus sign at the top right to add a new App ID. Fill out the fields, making sure to choose Explicit app id, and enter your app ID. *This must be the same App ID that you put in myapppresser.com under App customizer => Settings =>  App ID.

d) Under "App Services" check Push Notifications, then click Continue, then Submit.

2. Download Push SSL certificate

a) Go back to App IDs (see image from 1b), and click the app ID you just created to expand it.

b) Click "Edit."

c) Scroll down to "Push Notifications" and under Production SSL Certificate, click Create Certificate.

d) Follow the prompts to generate and upload a Certificate Signing Request. This is done in Keychain Access on a mac under the Keychain Access menu at the top -> Certificate Assistant.

e) Download the certificate, and give it a name like yourappname-ssl.cer

3. Generate your .p12 file

Next you need to generate a .p12 file that you will upload to myapppresser.com under My App => Push Notifications Profiles.

a) Double click the certificate you downloaded in step 2, this will open Keychain Access. Find and select the certificate, it will say "Apple Production IOS Push Services: com.yourapp.name."

b) Right-click and choose Export. Follow the prompts to save this file and create a password.

c) Go to myapppresser.com and upload the resulting .p12 file under Apps => My App => Push notifications => Notification profiles. Enter your password in the field below that, then save.

iOS Step III, create provisioning profile

The final step is to create a provisioning profile that will also be uploaded to Phonegap Build.

a) Login to your iOS developer account:    https://developer.apple.com/account, go to "Certificates, Identifiers, and Profiles."

b) Under "Devices," add your device name and UDID.    How to find your UDID.

c) Under "Provisioning Profiles," click Production, then click the plus sign at the top right.

d) Choose "Ad Hoc" for testing your app (if you want to submit to the app store only, choose app store).

e) Choose the app ID you created in step II.

f) Choose the certificate you created in step I.

g) Choose the devices you want to test the app with.

h) Give the profile a name like adhoc-appname, generate and download.

This is the provisioning profile you will upload to Phonegap Build along with the .p12 from step I.

Add your signing keys to Phonegap Build

For further information, please see the documentation at build.phonegap.com.