Bug 232302
| Summary: | Service worker and storage deleted after 7 days on Web application added to Home Screen | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Yogster <jander> |
| Component: | Service Workers | Assignee: | John Wilander <wilander> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Major | CC: | katherine_cheney, wilander |
| Priority: | P2 | ||
| Version: | Safari 15 | ||
| Hardware: | iPhone / iPad | ||
| OS: | Unspecified | ||
Yogster
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
John Wilander
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.