Test your integration

Once everything's set up, check whether it works as supposed to. There are several options to test sending messages to your app or site subscribers:

Test devices

Test Devices are intended to preview how push notifications look on a device before sending them to the app users. To test out your push notifications, register your device (with your app installed) as a Test Device, and then use the Test Woosh button in Send Push form.

Read more: https://docs.pushwoosh.com/platform-docs/segmentation/test-devices

Targeting

Another way to test your integration is to target your specific device with their unique identifiers: HWID (hardware ID), push token (a unique key assigned to your device by cloud messaging gateways), or userID (an identifier you can assign to your device by the /registerUser API request).

To do so, use the /createMessage API request with the corresponding parameter:

Example
{
"request": {
"application": "XXXXX-XXXXX", // Pushwoosh application code
"auth": "yxoPUlwqm…………pIyEX4H", // API access token from Pushwoosh Control Panel
"notifications": [
{
// Content settings
"send_date": "now", // required. YYYY-MM-DD HH:mm OR 'now'
"content": "Hello world",
"devices": [ //Specify tokens or hwids to send targeted push notifications. Not more than 1000 tokens/hwids in an array. If set, the message will only be sent to the devices on the list. Application Group for devices list is not allowed. iOS push tokens can only be lower case.
"dec301908b9ba8df85e57a58e40f96f523f4c2068674f5fe2ba25cdc250a2a41"
]
}
]
}
}

Segmentation

If you're to test your messages continually further, consider creating a specific Filter for your testing devices to send test messages in a couple of clicks.

  1. Assign a unique Tag value to your device by calling the /setTags API method.

  2. Create a Filter using this particular Tag value.

  3. Choose that Filter on the Segmentation tab of Send Push form.

Testing emails

To test email messaging:

  1. Make sure you've verified the email address and domain name from which you're going to send emails.

  2. Prepare an Email Template by uploading the HTML or building a template in the block-based editor.

  3. Go to the Send Email form and select "a list of addresses" option on the Audience tab.

  4. Enter the email address you're going to send email to and press spacebar.

  5. Specify the time to send and press Woosh on the Confirm tab.

To simplify test emailing, use Filters as described above and send emails to specific segments.