From an unmodified service-worker.published.js of a Blazor Hosted WASM project I was trying(in prod) some offline scenarios on mobile clients where the webapp was "Installed".
And here both Chromium based browsers and Firefox seem to completely fail any means to start without an internet connection with this steps:
- Install webapp
- Open it with an internet connection present and login
- Close the webapp
- Turn off the internet connection or go in airplain mode
- Open the installed webapp
- Fail to load the first page(from cache I guess) without internet connection
Meanwhile if this other offline scenario the app does still work:
- Install webapp
- Open it with an internet connection present and login
- Turn off the internet connection or go in airplain mode
- Continue the use of the webapp without any issue(except missing actions that require internet connections) as long as I don't close it
In this case is this the fault of the project(so it does require better handling for such scenario) or the browser and the tech behind(PWA) that doesn't support such scenario?