Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PWA Not Loading Offline After Publishing in .NET MAUI Blazor App #27253

Open
faisalkkv opened this issue Jan 21, 2025 · 0 comments
Open

PWA Not Loading Offline After Publishing in .NET MAUI Blazor App #27253

faisalkkv opened this issue Jan 21, 2025 · 0 comments

Comments

@faisalkkv
Copy link

Description:
When debugging the .NET MAUI Blazor app, the PWA loads and works offline as expected. However, after publishing the app, the PWA does not load offline.

Steps to Reproduce:

Create a .NET MAUI Blazor app.
Load the PWA app from an external URL using an <iframe>.
Debug the project:

  • First, run the app while online. Verify that the PWA app loads as expected.
  • Then switch to offline mode. Verify that the PWA app continues to work offline as expected.

Publish the app (e.g., using dotnet publish with the appropriate configurations).
Test the published app:

  • While online, the PWA app works as expected.
  • Switch to offline mode. The PWA app fails to load.

Expected Behavior:
The PWA should load and function offline after being published, as it does during debugging.

Actual Behavior:
The PWA does not load offline after publishing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant