Register for push notifications

This usually happens because there is a problem with the ServiceWorker, which processes the request to the browser. To ensure it is properly configured, we need to go to "Integrations > Web > Push Notifications" and check the URL we have indicated in the "ServiceWorker URL" field.

02.Captura-Configuracion-Service-Worker.jpg

First, it must be of the type "https://yourdomain.com/service-worker.js". It doesn't matter if the folder where the script is uploaded is at a different level. We can check that it is uploaded by copying the URL into the browser, and it should return the script. It is essential that the domain has an SSL security certificate; otherwise, the ServiceWorker will not work.

Also, from the browser and by pressing F12, we can quickly check if the ServiceWorker is running.

03.Captura-DevTool-Aplication-ServiceWorker.jpg

More information at Configuring Web Push Notification.

Was this article helpful?
0 out of 0 found this helpful