This guide explains how to verify that an SDK integration has been successful. It shows how to check that the SDK is able to register devices correctly back to the Notivera portal and how to make pushes to your specific device in order to verify they arrive and display correctly.
The basic steps involve identifying your test device and obtaining a device or subscriber ID. You can use this to check some basic information about your integration. You will then use this to create a segment, which in turn you can use to send one of each of the three types of push notifications we support:
You will be able to see how these should look when they arrive and understand possible things to check if they don’t perform as expected.
The first step is to install the app you’ve done the integration with onto a test device. For iOS, this must be a real device - the simulator won’t work. For Android, you can use a real device, or the simulators. Note that subscriber ID’s and device ID’s are different. Subscriber ID’s are assigned by the portal and do not change. End devices are not aware of their subscriber ID. Device ID’s are generated and stored by the device.
If you only have a few test devices and you’re the only one doing testing, the easiest way to get your ID is through the User Explorer page on the portal. The most recently seen devices will appear at the top of the list. If you’ve recently opened the app on your test device, it should be the at, or near, the top. Click into a few devices and see if the other attributes match up (is it in the right location - is it the right app and OS version etc.) If everything looks right, copy the long ID from the URL bar. This is your subscriber ID. You will need this later.
As an alternative - and one we recommend - you can provide a way in your app to get the device ID. Our SDK provides a getDeviceId method which will return the ID of that specific device. Commonly this is exposed via a “shake” gesture, or by tapping on a hidden button a few times (similar to activating developer mode on Android). You can then search for this via the User Explorer “search” function and, as above, check that device is the correct one and you can then grab the subscriber ID from the URL, or use the device ID.
Subscriber segments are one of the core building blocks of a campaign, allowing you to target subscribers with particular attributes. They are essentially a named list of subscribers for a notification.
See Creating subscriber segments for more details.
After logging into the portal, you will be presented with the standard dashboard
Head to the LIBRARY menu item, select the SEGMENTS tab and begin to CREATE SEGMENT. Type a name and description for your segment. Include your name and date preferably, try not to use common things like “test segment” as you may end up with several, and aren’t able to identify which is which.
Select either the DEVICE IDS or SUBSCRIBER IDS rule as appropriate for your ID and click ADD.
Select your operator as IN, and then paste your DEVICE ID or SUBSCRIBER ID into the text box and press RETURN.
.png)
Click the refresh icon in the top right next to total users - the number displayed should change to “1”. If not, wait a few seconds and retry in case the device hasn’t registered yet (it can take up to 90 seconds). If you still don’t get a number, check you’ve got the right ID for the rule (are you adding a device ID into the subscriber ID rule or vice versa) and check the ID itself. Note that they are CASE SENSITIVE.