Bug 232304 - PWA doesn't work in offline mode intermittently - Restarting iPhone fixes it
Summary: PWA doesn't work in offline mode intermittently - Restarting iPhone fixes it
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Service Workers (show other bugs)
Version: Safari 14
Hardware: iPhone / iPad iOS 14
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-10-26 07:15 PDT by Yogster
Modified: 2021-10-26 11:01 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yogster 2021-10-26 07:15:02 PDT
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.
Comment 1 Radar WebKit Bug Importer 2021-10-26 11:01:51 PDT
<rdar://problem/84671520>