Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

How to cold start a Blazor WASM app when a client device has no internet or is in airplain mode?

$
0
0

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:

  1. Install webapp
  2. Open it with an internet connection present and login
  3. Close the webapp
  4. Turn off the internet connection or go in airplain mode
  5. Open the installed webapp
  6. Fail to load the first page(from cache I guess) without internet connection

Meanwhile if this other offline scenario the app does still work:

  1. Install webapp
  2. Open it with an internet connection present and login
  3. Turn off the internet connection or go in airplain mode
  4. 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?


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>