Hi,
I am running a web app on Android and I would like to get the nice "Add to Home Screen" banner shown automatically.
Indeed the banner appeared after loading my page a couple of times with some delay.
After adding it to the Home Screen and launching it I took the device off-line and then restarted the app from the Home Screen.
To my surprise the offline page was shown, which was not what I wanted.
What I do want is to show the offline page if the "normal" web page cache was not present, and replace the standard "no connection" page with a custom variant.
Before this my experience with working offline in my app is that it would work almost always as long as the user had loaded it online one time.
What could I benefit with a service worker (except in getting the "Add to Home Screen" support) ?
Thanks,
Anders