Bug 232304
| Summary: | PWA doesn't work in offline mode intermittently - Restarting iPhone fixes it | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Yogster <jander> |
| Component: | Service Workers | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | Normal | CC: | ggaren, marcosc, sihui_liu, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 14 | ||
| Hardware: | iPhone / iPad | ||
| OS: | iOS 14 | ||
Yogster
We have a PWA using a Service Worker, Application Cache and IndexedDB to provide offline functionality to our users.
This is the same PWA as bug https://bugs.webkit.org/show_bug.cgi?id=232302
We've found the following behaviour in an iPhone XR running iOS 14.8:
Intermittently, when using the PWA in offline mode, the standard Safari network error is displayed instead of our PWA's offline functionality.
Restarting the phone brings back the PWA in offline mode, without the need to go online, along with all saved data - So unlike the bug above, it doesn't look like the data is being evicted.
Our manifest.json file has "display" set to "minimal-ui", so the PWA displays in Safari instead of its own window.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/84671520>
Marcos Caceres
Closing as works for me.