Thank you for trying Webpushr out. It is probably due to conflict with the service worker file.
Only one service worker (our service worker file is webpushr-sw.js.php located at ~/wp-content/plugins/webpushr-web-push-notifications/sdk_files/webpushr-sw.js.php) can be registered with the top most (site root) service worker scope. Please import any other service worker files into our service worker to remove this conflict.
Here’s how you can do that:
Currently the content of webpushr-sw.js.php (located at ~/wp-content/plugins/webpushr-web-push-notifications/sdk_files/webpushr-sw.js.php) contain the following single line:
importScripts(‘https://cdn.webpushr.com/sw-server.min.js’);
Please modify the content of webpushr-sw.js.php to import your other service worker files like this:
importScripts(‘https://cdn.webpushr.com/sw-server.min.js’);
importScripts(‘https://example.com/additional-service-worker.js’);
-
This reply was modified 4 years, 9 months ago by
webpushr.