Test Your Setup: Send a Push
MobilePush SDK Setup
Before you send a push notification to your device as a test, complete all of the Get Started steps:
Use a device to test. You can use an iOS simulator for testing some aspects of the SDK, but the simulator cannot receive push notifications.
Xcode Setup
- Attach a device to your Mac and select the device in your active scheme.
- Build and run your application on your device.
Configure the SDK for Development
- In your configuration of the SDK, use the MobilePush application values created in the steps above.
- Set a temporary contact key in your app for testing. For example, use an email address. This allows you to target the device you are testing on when sending the test push.
-
Build and run your application on your connected device.
It may take up to 15 minutes for your contact to be created in Marketing Cloud
Send a Test Push
-
In MobilePush in Marketing Cloud, create a filtered list that targets the contact key you set as in the example above.
When creating the filter criteria, use the Contact Key attribute. Find this attribute under System Data > Contact > Contact Key., Set the attribute equal to the contact key in your iOS app.
It may take up to five minutes for the contact created by your app to show up in the filtered list. Refresh the list until the new contact is returned before proceeding to the next step.
-
In MobilePush in Marketing Cloud, create a test message and send it to your newly created filtered list.
Troubleshooting
- If the push notification doesn’t arrive on the device, check the filtered list to confirm that the contact’s status is Opted In.
- If the contact is not opted in, check that you exactly followed the steps to set up the call to config and the other integration steps.
- Verify that the app settings in MobilePush match those you are using to configure the SDK.
- For further diagnostic steps, see our Troubleshooting Push Setup.