How do I configure push notifications for iOS devices for Broadcast Campaigns?

 

This article is designed to help developers using the messaging SDK to configure push notifications for iOS based applications.  Apple has some excellent documentation available to assist developers.  This article assumes a basic knowledge of the developer console for apple developers.

Step-by-step guide

Add the steps involved:

  1. Obtain an apple developer account.  You will need an apple developer account, and access to developer.apple.com.  Note that you must have sufficient privileges in your account to manage applications and certificates.
  2. Go to "Certificates, Identifiers and Profiles" area and create a new App ID for your app under "Identifiers > App IDs".  Note that for push messages, you need an explicit ID.
  3. Under "App Services" you must enable "Push Notifications"
  4. Save your App ID
  5. You now need to setup Development / Production SSL Certificates for your application, you do this by editing the App ID, and scrolling down to the Push Notifications area, and selecting "Create Certificate" under the appropriate type of certificate. Note that to debug applications, you MUST use Development SSL certificates.  Note: This is especially useful if you want to debug deep linking or meta-data from a push notification when it arrives to your application in debug mode.
  6. Follow the instructions to create a Certificate Signing Request (CSR) for the certificate.
  7. Once complete, download the certificate to your computer, and install it into your Keychain.
  8. Once installed, you must export the certificate from your computer, and create a p.12 file.  You will need to select a password for this p.12 file - remember this password, as you will need it later.
  9. Login to MaaS Portal and enter the Applications section under Account
  10. Select the appropriate application you created already, and note the section available to configure your application for certificates.  Browse and upload your p.12 file, enter the password you chose in the step above, and choose if this certificate is a Production or Development certificate.
  11. Save the application in the portal.
  12. In XCode - you will need to configure your application with the appropriate bundleID, and provisioning profile depending on if your using a Development or Distribution configuration.
  13. Run your application - and your all set!

 

You may also want to use visual panels to communicate related information, tips or things users need to be aware of.

Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.

Related issues