Bug 232304

Summary: PWA doesn't work in offline mode intermittently - Restarting iPhone fixes it
Product: WebKit Reporter: Yogster <jander>
Component: Service WorkersAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ggaren, sihui_liu, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 14   
Hardware: iPhone / iPad   
OS: iOS 14   

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>