In order to send in-app messages to your users, you must have the following items in place:
- Push Notifications must be enabled on your App ID.
- Your Distribution Certificates must have been built after Push Notifications was enabled.
- Your Provisioning Profiles must have been built after Push Notifications were enabled and uploaded to the Mag+ Publish portal.
- Your Push Notification Certificate must be uploaded to the Mag+ Publish portal.
If any one of these items is not in place, you will be unable to send Push Notifications to your users.
You can check your provisioning profiles to see if Push Notifications are active by reading the article "iOS - Reference - Checking If Your Provisioning Profiles Accept Push Notifications."
How to Update Your Provisioning Profile and Upload a New Push Notification Certificate and Provisioning Profile
1. Login to the iOS Developer Console <https://developer.apple.com>, click Member Center and then "Certificates, Identifiers & Profiles."
5. Place a checkmark next to "Push Notifications" and then, under Production SSL Certificate, click on the "Create Certificate" button.
7. Click on the "Choose File" button and select the Distribution Certificate used for your apps, then click on "Generate."
Note: You can download your existing Distribution Certificate from the Mag+ Publish portal if you do not have the original copy at hand. The certificate is located in Apps > iOS > Certificate and Provisioning Files. Simply click on the file name under the words "Distribution Certificate."
9. Double-click the 'aps.cer' file to install it in Keychain Access.
It will have the name "Apple Production iOS Push Services" and will expire one year from today's date.
12. Log in to the Mag+ Publish portal <http://publish.magplus.com> and go to Apps > iOS > Apple Push Notifications.
13. Click on the "Choose File" button and choose your Push Notification .p12 file you exported above.
14. Click "Save" and the Apps > iOS screen should read "Complete" next to Apple Push Notifications.
You can now build your app again and upload it to the Apple Store so that your users can receive Push Notifications. For more information on submitting an app update, read the article "Update Your iOS App."