Test Production Push Notifications

For testing production conditions, the steps are different than in testing development conditions.

  • Choose the correct distribution profile To deploy to your device, you'll need to be using either an Ad-Hoc or Enterprise distribution profile. Trying these steps with an App Store provisioning profile will not work, as the pushes will be rejected by Apple.
  • Turn off development mode If your device was previously marked as development, turn this off before proceeding.

Test Push in Production

  1. Edit your application's scheme in Xcode and run your application in release mode. This will mean that Apple will provide your app a production push token at runtime, and Mobile will have a valid token when communicating with with Apple.
  2. Refresh the device log, and your device should appear.
  3. Copy the Device ID.
  4. Create an Audience with this Device ID. This will be the audience you send messages to so they only go to you and not any other users. Navigate to Audiences, Create Audience.
  5. Navigate to Messages, Push, Create New.
  6. Select your Audience name you used above.
  7. Type in some test text, and click Preview, then Publish Now.
If you received the push, test is working correctly in production.

Contact us