4 ms·
Agree on debugger. However, did you follow the guidance and turn on the flag in Chrome? The flag lets you bypass the heuristics for when to show the prompt.
by kinlan 12y ago
Agree on debugger. However, did you follow the guidance and turn on the flag in Chrome? The flag lets you bypass the heuristics for when to show the prompt. If you don't have it enabled you have to visit the site twice in two weeks (on separate days)
- StavrosK 12y agoI did, yes (the test site works fine).
- kinlan 12y agoYou don't appear to have a service worker registered.
- StavrosK 12y agoWhat do you mean? I took the code straight from the example, and it prints "worker registered" in the console when I add a logging call there.
- kinlan 12y agoI was looking at the site, and I don't see it. Digging a little deeper, you need to work more on SW. Right now it is hosted on https://www.tithess.gr/static/js/service-worker.ba9881a3a5f4.js https://www.tithess.gr/static/js/service-worker.ba9881a3a5f4... - this means the service worker is only working for the directory 'https://www.tithess.gr/static/js/' https://www.tithess.gr/static/js/', if you want the banner to appear you need to have the service worker directly in the root of the site (note, this is how service worker is intended to work).
- StavrosK 12y agoThanks, I looked everywhere for something defining the scope and couldn't find any solid documentation. The registration is in the head, I'll move it to the top level, though, thanks.