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:
Don't forget to remove this line for the production environment.
PreviousHow to integrate Batch's snippet (ECMAScript 6) using a Tag Manager?NextHow can I configure the display time of web push notifications?
Last updated
Was this helpful?