Whenever you are performing test sends for not profile-based channels such as web push, mobile push, inbox, onsite/in-app messages, identifying the device ID is necessary. You'll find details on how to identify your device ID in the different environments.
The system will return the device id as
id (not the entry named
For mobile-based channels (mobile push, mobile inbox, in-app messages), obtaining the device ID will be easy in your stage apps. You can do so by calling the following:
mPushConnector.getDeviceInfo(this).get("XPushDeviceID"); //This will return the Xtremepush device ID as a string.
You can also find your device ID in the SDK debug logs.
In your production app, you will need to identify your device ID from the user interface, narrowing down the results through the different data points that our mobile SDKs collect.
Unless you have turned off the collection of the iOS device name in production, the easiest way for iOS app users to identify a device ID is by the device's name.
- Open your iOS app on your device.
- Change your iOS device name to something that's unique from Settings > General > About > Name.
- Close your iOS app on your device.
- Reopen your iOS app, to make sure that the new name is communicated to Xtremepush.
- Navigate to Data > Devices and use the Name field to search by your device's name.
Can't see the Name field?
The devices page has several searchable fields that can be enabled or disabled. Move all the way to the right and click on the gear icon to enable the Name field in your project.
Some of the data points that you can use are:
- Device model
- Operating system (OS version)
Use a combination of these to narrow down the results.
Click on Calculate before launching the campaign and make sure that the recipient count is higher than 0 and matches what you expect.
Updated 5 months ago