question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Blazor wasm PWA runs under LAN and there is no installation icon button

See original GitHub issue

Describe the bug

e12af2dcfb84f4743c9e580b65997e5

WLAN adapter WLAN:
   IPv4 Address . . . . . . . . . . . . : 192.168.0.98

Without localhost, I lost PWA The install icon button does not exist in the local WLAN IPV4.

.NET Version

dotnet6

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
blowdartcommented, Dec 29, 2021

“Blazor Wasm PWA cannot be accessed when running under non-localhost”

Please provide your launchSetttings.json file

In profiles you should have something like the following,

  "profiles": {
    "WebApplication1": {
      "commandName": "Project",
      "dotnetRunMessages": true,
      "launchBrowser": true,
      "applicationUrl": "http://0:0:0:0:5164",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    }

When I use that application URL I see

Building...
info: Microsoft.Hosting.Lifetime[14]
      Now listening on: http://[::]:5164
info: Microsoft.Hosting.Lifetime[0]
      Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
      Hosting environment: Development
info: Microsoft.Hosting.Lifetime[0]
      Content root path: C:\Users\BarryDorrans\source\repos\WebApplication1\WebApplication1\

The listening line is different. I also had to tell Windows to allow connections through the firewall once I started listening on all IP addresses

0reactions
mkArtakMSFTcommented, Jan 3, 2022

Thanks for contacting us. This doesn’t seem to be related to Blazor. You will probably be able to get help on StackOverflow so we recommend posting your question there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blazor Web Assembly - Install Button not visible
I've created a new Blazor Web Assembly App. I've checked the 'PWA' checkbox before creating the project. When i now run the project...
Read more >
Blazor WASM PWA -- Local run shows Install; Published ...
I created a new WASM project as PWA. Just kept the template with no changes. When I run it locally (IIS Express), the...
Read more >
ASP.NET Core Blazor Progressive Web Application (PWA)
Learn how to build a Blazor Progressive Web Application (PWA) that use modern browser features to behave like a desktop app.
Read more >
Blazor WASM PWA — Adding a “New Update Available ...
The easiest way is to create a new Blazor WASM PWA project and copy some files. The files you're interested in are icon-*.png,...
Read more >
How do I create a Blazor WebAssembly PWA to work offline?
It runs in its own app window and independent of network speed. Follow these steps to create a Blazor WebAssembly PWA application to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found