Can I convert my Blazor WebAssembly app to a PWA?

sblb 1,191 Reputation points
2024-09-21T08:52:24.9766667+00:00

I have developed a Blazor WebAssembly ASP.NET hosted app that runs well on my local database. Unfortunately, I cannot publish it because I lack the necessary web server deployment capabilities. Is it possible to convert my app to a PWA so that it can be used by multiple users without the need for a web server? Can anyone point me in the right direction? Thanks!

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,575 questions
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 64,826 Reputation points
    2024-09-21T16:16:41.65+00:00

    A PWA still requires a hosting webserver. The PWA is just a webapp with a manifest file. The PWA manifest file defines icon, cached resources required to be installed on the desktop. The manifest also defines the JavaScript service worker that supplies offline support.

    here is a tutorial

    https://learn.microsoft.com/en-us/aspnet/core/blazor/progressive-web-app?view=aspnetcore-8.0&tabs=visual-studio

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.