Open adekbadek opened 2 years ago
Service Workers for OneSignal was moved to new scope: /push/onesignal/ already to take care of conflict with PWA https://github.com/OneSignal/OneSignal-WordPress-Plugin/pull/268
Thanks! Still, the issue is reproducible and it relates to SWs.
Describe the bug
Both PWA and OneSignal plugins register their Service Workers, which are in conflict.
This is a known issue (link, link), which is not caused by Newspack. But it can perhaps be solved by this plugin.
To Reproduce
Next steps
Delaying the OneSignal initialization, as described here, has worked – but only if OneSignal was initialized well after the PWA Service Worker has been installed & activated. In my testing, a delay of 10s worked, but in production this should be solved by waiting for the SW activation event.