Uno.Wasm.Bootstrap icon indicating copy to clipboard operation
Uno.Wasm.Bootstrap copied to clipboard

ASP .NET Minimal Webserver PWA Offline Support

Open meldano opened this issue 6 months ago • 3 comments

I use the .NET 8 WASM template incl. PWA support.

When I run a ASP .NET Minimal Webserver

`var builder = WebApplication.CreateBuilder(args); //builder.WebHost.UseUrls("http://0.0.0.0:5000");

builder.Services.AddDirectoryBrowser(); var app = builder.Build();

app.UseUnoFrameworkFiles();

app.MapFallbackToFile("index.html");

app.Run();`

I am able to install the PWA; however, it only works when the server is online.

meldano avatar Apr 17 '25 08:04 meldano

Thanks for the report. Can you tell which version of the bootstrapper or uno.sdk you're using?

jeromelaban avatar May 09 '25 12:05 jeromelaban

Sure

Uno.Wasm.Bootstrap.Server" Version="8.0.23"

Uno Platform 5.6.46.70

meldano avatar May 09 '25 18:05 meldano

I tested the behavior with Uno Platform 6.0.30.30, and the project template includes the web server. Same issue: installing the PWA is possible, but offline support without running the server doesn't work.

meldano avatar May 10 '25 12:05 meldano