Nickersoft / push.js

The world's most versatile desktop notifications framework :earth_americas:

Home Page:https://pushjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No ServiceWorker gets registred

mathishuettl opened this issue · comments

Hello,

I am using the following code, but there is no service worker installed in my dev-tools.

Push.config({
  serviceWorker: EP.PLUGIN_URL + "js/dist/sw.js",
  fallback: function(payload) {
    console.log("browser doesnt support notifications");
  }
});
Push.create("Hello World");

@mathishuettl
Could you inspect in your browser devtools if the correct serviceworker URL is being requested by the browser, and if so is it resulting in a 404.

@theLufenk I did, but there is just nothing.. no 404 or any serviceworker

no solution for my problem?

Do you have a link to something I can look at ? It is quite difficult to find the issue. All I can do is give you probable reasons, which doesn't seem very effective.

For starters, is your EP.PLUGIN_URL variable being resolved correctly, and is it referring to the same origin ?

Closing due to inactivity.