My Problem: I am trying to setup Progressive Web App for my site but my Manifest.json file's installability shows "Page does not work offline"
I tried to find what's causing this but couldn't. Can someone shed some light into this?
My Problem: I am trying to setup Progressive Web App for my site but my Manifest.json file's installability shows "Page does not work offline"
I tried to find what's causing this but couldn't. Can someone shed some light into this?
Your service worker might not have event listener for fetch
event.
Which is basic requirement for PWA.
Just add:
self.addEventListener('fetch',() => console.log("fetch"));
to your service worker or add fetch
listener according to your requirement.
To get more info follow: https://developers.google.com/web/ilt/pwa/lab-caching-files-with-service-worker#3_serve_files_from_the_cache
Your site doesn't install a service worker. Without a service worker offline will not work.
I had similar issue with service worker and the latest Chrome add "offline_enabled": true to manifest.json to solve it