I have problem with OneSignal integration, too.
After OneSignal plugin activation, PWA service worker stops to work. Any ideas?
Hello,
I have the same problem too. After enabling this plugin, OneSignal stops working.
Error message from console of DevTools
[Service Worker Installation] Installing service worker
failed SecurityError: Failed to register a ServiceWorker for scope ('https://www.laclefdevoute.fr/') with script ('https://www.laclefdevoute.fr/sdk_files/https://www.laclefdevoute.fr/?wp_service_worker=1?appId=95c543bc-81ff-4cb3-9c3f-fc49f97100b5'): The path of the provided scope ('/') is not under the max scope allowed ('/sdk_files/https://www.laclefdevoute.fr/'). Adjust the scope, move the Service Worker script, or use the Service-Worker-Allowed HTTP header to allow the scope.
(anonymous) @ OneSignalPageSDKES6.js?v=150801:1
ServiceWorkerManager.js:373
Extrait de ServiceWorkerManagner.js:373 :
Log.error('[Service Worker Installation] Installing service worker failed ${error}');
// Try accessing the service worker path directly to find out what the problem is and report it to OneSignal api.
// If we are inside the popup and service worker fails to register, it's not developer's fault.
// No need to report it to the api then.
Hi there
Yes, it seems like one signal made some updates which conflict with the current implementation in progressive WordPress.
However, I will not fix the integration because I don’t want to depend on their plugin decisions. Instead, I will implement a more sustainable solution for sending push notifications:
https://github.com/SayHelloGmbH/progressive-wordpress/issues/57
Kind regards,
Nico