Send Test Notifications

After you complete your website integration with the Responsys Web Push Javascript Tag and Service Worker, you can use the Test Push functionality to validate your SDK Integration.

Before you begin:

  • You'll need at least one Visitor ID to be used for testing. You can obtain Visitor IDs using one of the following methods:

    • Call the webPushManagerAPI.getVisitorId() method from the Developer Console.

    • Viewing the log statements, search for "Registration to be send::". This JSON object contains a vid attribute, where the value represents the Visitor ID of that website and browser.

To send test notifications from your Web Push app:

[1] Click the navigation menu, and click App Developer Console.

[2] Find your Web Push App, and click Edit > Platform.

[3] Click the Test icon in the row of the platform that you want to test.

An image of clicking test

[4] Complete the details of your test message:

  • Visitor IDs: Enter the Visitor ID(s) to be used for your test. If you want to test more than one Visitor ID in a single test, you can enter up to ten comma-separated Visitor IDs.

  • Notification Title: Enter a Notification Title (256 characters).

  • Notification Message: Enter a Notification Message (1024 characters).

  • Destination URL: Enter a Destination URL.

An image of completing the details of your test message

[5] Click Send test message.

Troubleshooting Testing Errors

When the test encounters an error for a given Visitor ID, it logs the error and the Test result dialog will display an error message, similar to the following:

An image of The test result dialog displaying an error message

Common Errors

Error How to fix it
"Error: Web Push Channel List is NOT defined for this App" A Responsys Account Admin must define a Web Push Channel List for the Web Push app using the Managing Web Push App Configurations page in Responsys. After this has been completed, try testing again.
"Web Visitor Registration has not been received for this Visitor ID." Web visitor registration has not been received by the Responsys servers, so the Web Push Channel List does not have any entries corresponding to the Visitor ID. Ensure you have implemented the integration correctly, as defined in this guide.