Register for push notifications

 

Este artigo está atualmente disponível em inglês e espanhol. Você pode usar esta documentação enquanto ela não estiver disponível em seu idioma.

 

Questo articolo è attualmente disponibile in inglese e spagnolo. Puoi fare riferimento a questa documentazione mentre arriva nella tua lingua.

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.

Esse artigo foi útil?
Usuários que acharam isso útil: 0 de 0