Question:
I can not get the subscription pop-up in my browser due to the "Pushwoosh init failed DOMException" error.
Answer:
The most common scenario for this error to appear is the mismatch between the versions of Web SDK and the Service Worker.
In order to avoid this error you can:
1. Install the npm package and get the SW from this package
https://www.pushwoosh.com/platform-docs/pushwoosh-sdk/web-push-notifications/web-push-sdk-3.0#install-from-npm
2. Get both: the SDK and the SW from the CDN. In this case, your website will always receive the latest versions automatically.
Comments
0 comments
Please sign in to leave a comment.