ServiceWorker not registered if notifications blocked
-
I made a slight edit to piggyback an offline-caching ServiceWorker for Progressive Web App features along with the base code of this plugin.
It works perfectly fine, as long as notifications aren’t blocked. If they are, the serviceworker isn’t registered at all, and ImportScripts is never called so it never loads in my PWA serviceworker code either. It’s easy to see in an Incognito window (where notifs are blocked by default, thus the SW never registers period).
Is there a way to modify the behavior of this plugin to load the serviceworker even when it’s blocked? I’m alright with editing the PHP/etc myself and I know it’ll break if I update. I can maintain it myself I just need to know where to look.
- This topic was modified 7 years, 6 months ago by .
- This topic was modified 7 years, 6 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘ServiceWorker not registered if notifications blocked’ is closed to new replies.