Outbound allows sending push notifications to both iOS and Android. This article is a walkthrough of the iOS setup.
Ultimately, a .p12 file will be uploaded to Outbound's settings page to allow Outbound sending push notifications.
Setting up APNS requires the following tasks:
Creating the SSL certificate
The first step is to create an SSL certificate, which will then be used to create an iOS certificate. The iOS certificate will be used to create a .p12 file.
To create the SSL certificate
- Open the Keychain Access application on OSX.
- Create a new certificate by going to Keychain Access > Certificate Assistant > Request a Certificate From a Certificate Authority...
- Add your information in the Certificate Assistant, but don't worry about adding an email in the CA Email field.
- Save this to disk by selecting Saved to disk.
- Click Continue, then save this file to desktop (name it something you will remember for the next sections).
Creating an app identifier
After you've saved your certificate, head over to Apple Developer's Member Center and click on Certificates, Identifiers & Profiles. Here, we'll be able to create app identifiers, iOS certificates, and provisioning profiles.
- Under Identifiers, select App Ids.
- Create your identifier with the appropriate information.
- Add a reverse domain for the App ID Suffix.
- Under App Services check Push Notifications.
- Continue on to the next page, erify the information is correct, and submit. You now have an App Identifier.
Creating an iOS push certificate and .p12 file
In order to send and receive push notifications, we'll need to create development and production certificates. Below is a walkthrough for creating the development certificate; the same can be repeated to create the production version.
- Go to your recently created App ID, click on the App ID that was created in the previous section.
- In the overview of your Application Services, it should say "Configurable" for Push Notifications, click the Edit button.
- Click Create Certificate to create a new iOS Push Certificate.
- On the Generate your certificate page, where you will be able to upload the certificate we created in "Creating an SSL certificate" section, above.
- Once done uploading, on the next page, download the generated .cer file.
- Open the .cer file with the Keychain Access app, and go to My Certificates in the sidebar.
- Drag the .cer file over to login in the sidebar.
- Right click the file, then select Export .... This lets you export a .p12 file.
You can now upload the .p12 file to Outbound's providers page. Outbound requires both Development and Production versions of the .p12 file. In order to test in development, you should use your development key which can be found on the environments page