How to test web push on the development environment?

Here is all you need to know to review your web push integration in a preprod environment.

If you tried to test your web push integration and got a "401 unauthorized" error in the console of your browser, you most likely need to take the following steps :

1. Add Your Test URL as an Allowed Dev Origin

Go to the Settings > Channels > Website section of your dashboard and add your test URLs in the "Allowed dev origins" field.

2. Switch to Dev Environment in the Tag Configuration

Add the following parameter to the Batch JavaScript tag on your website:

dev: true

Last updated

Was this helpful?