Question:
I've implemented Pushwoosh Web SDK into my website, but getting the "Failed to register a ServiceWorker" DOMExeptoion in the console.
Answer:
Please check your initialization parameters. This error might occur in case there is a discrepancy in placing and initializing of the service worker.
Please make sure that you intialized the service worker using the same path you placed it. For example, if you placed it in the your_site_directory/push-notifications/, you should use the following initialization parameters:
serviceWorkerUrl: '/your_site_directory/push-notifications/pushwoosh-service-worker.js'.
Please refer to the following guide for more information:
Comments
0 comments
Please sign in to leave a comment.