RESOLVED WONTFIX232302
Service worker and storage deleted after 7 days on Web application added to Home Screen
https://bugs.webkit.org/show_bug.cgi?id=232302
Summary Service worker and storage deleted after 7 days on Web application added to H...
Yogster
Reported 2021-10-26 05:41:01 PDT
We have a PWA using a Service Worker, Application Cache and IndexedDB to provide offline functionality to our users. When testing, we install the PWA in our test device, an iPhone 7 running iOS 15.0.2. We've noticed that after a week of not using the PWA, all data (Service Worker, Application Cache, IndexedDB) gets deleted and the standard Safari network error is displayed instead of our PWA's offline functionality. We're aware of this blog post (https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/) describing the behaviour above, but this should not apply to installed Web Applications. Our manifest.json file has "display" set to "minimal-ui", so the PWA displays in Safari instead of its own window. Could this be the case of the data loss?
Attachments
John Wilander
Comment 1 2021-10-26 13:24:35 PDT
Thanks for filing! There is no way to get an exception in Safari. If you adjust your manifest to use either the “standalone” or “fullscreen” display mode, your home screen web application will open full-screen in Web.app and you will get the behavior you want. Please reopen this bug if that doesn't solve it for you.
Note You need to log in before you can comment on or make changes to this bug.