Hey this was a nice guide. 😃
I actually tried this long ago
But since then I am encountering problems.
My Service Worker seems to get registered but it's showing that(Add to Home Screen) option.
PS : my site is deployed on GitHub Pages.
Any suggestions?
Hey Bhupesh,
I saw your site and its code on github, basically you are not using the register service worker function in your <head>. This might be root of your problems.
The manifest is fine.
The service worker has an empty fetch event so it won't do anything. Adding the index to cache is fairly easy.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey this was a nice guide. 😃
I actually tried this long ago
But since then I am encountering problems.
My Service Worker seems to get registered but it's showing that(Add to Home Screen) option.
PS : my site is deployed on GitHub Pages.
Any suggestions?
Hey Bhupesh,
I saw your site and its code on github, basically you are not using the register service worker function in your
<head>
. This might be root of your problems.The manifest is fine.
The service worker has an empty fetch event so it won't do anything. Adding the index to cache is fairly easy.