• Resolved sirtaptap

    (@sirtaptap)


    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 6 years, 7 months ago by sirtaptap.
    • This topic was modified 6 years, 7 months ago by sirtaptap.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘ServiceWorker not registered if notifications blocked’ is closed to new replies.