On iOS/iPad OS 14.5 and 14.6 Beta, PWA/Home Screen Apps with Service Workers are intermittently failing to open when the iPad/iPhone is disconnected from the internet. Instead they return the error page: "Safari cannot open the page *web app url* because your iPad is not connected to the Internet" or "Safari cannot open the Page because your iPhone is not connected to the Internet". It is intermittent, and the Web App will usually open the first time after turning off the network, but eventually fail to open after closing and re-opening repeatedly. It seems to randomly open again if you keep trying, and will work in bursts (open offline perhaps 3 times in a row), before predominately failing to open again. I haven't been able to discern a pattern of when it does/doesn't work.
I am testing multiple PWA's that worked offline without issue in iOS 14.4 (like https://airhorner.com/)
I'm having the issue on both the 14.5 release (Mozilla/5.0 (iPhone; CPU iPhone OS 14_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1 Mobile/15E148 Safari/604.1)
and 14.6 Beta (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.1 Safari/605.1.15))
Created attachment 427341 [details]
Committed r276845 (237196@main): <https://commits.webkit.org/237196@main>
All reviewed patches have been landed. Closing bug and clearing flags on attachment 427341 [details].
*** Bug 228702 has been marked as a duplicate of this bug. ***