Test your integration
After you integrate the Pushwoosh SDK and connect your messaging channels, register test devices and send a test message to check that everything works.
Register test devices
Anchor link toTest devices let you preview how a message looks before you send it to your audience. Register a separate test device for each channel you want to check.
- Push: Requires the app with the Pushwoosh SDK installed. Set up QR deep links once, register from the app, or add the device by HWID. Set up push test devices
- Email: No app-side integration. Add an email address in Control Panel and confirm it with a verification code. Set up an email test device
- SMS: No app-side integration. Add a phone number in E.164 format in Control Panel and confirm it with a verification code. Set up an SMS test device
You can also register devices through the API:
createTestDevice: registers a device by HWID or push token, without the manual Create test device form.listTestDevices: returns the devices already registered for an application.
Test devices are application-specific. Configure them separately for each application.
Send a test message
Anchor link toSend a test in one of these ways. All but the browser test need registered test devices.
- Control Panel: Use the Test push notification button in the Push Preset form. For email and SMS, send a test from the message form after those test devices are registered.
- Control Panel, web push to your browser: Click Send to my browser in the Push Preset form, or Send test push to my browser on the Web SDK configuration card. The web push goes to the browser where you are signed in to the Control Panel and needs no test device. With content approval on, Send to my browser is hidden, like Test push notification.
- API: Call
notifywithtest_devices: truein thetransactionalblock. The message goes to the application’s test devices without opening the Push Preset form. - Journey: Build a short journey that targets only your testers, then launch it.
Test a journey with a test segment
Anchor link toTo test a journey on a limited audience, create a Segment of test users, use it as the journey entry, and launch the campaign.
- Create a Segment that includes only test users, by either:
- Uploading a CSV file with the necessary conditions. Learn more
- Assigning a unique Tag value to your test devices by calling the
/setTagsAPI method. Then create a segment using this Tag value.
- Go to Campaigns → Create Campaign → Build a journey from scratch, or use one of the pre-built customer journey templates.
- Add the Audience-based entry element to the canvas and select the Segment you created.
- Add a message element such as push, SMS, or email.
- Select existing content, or create custom content.
- Configure the remaining journey elements as needed.
- Click Launch Campaign to start the test.