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

[BUG] PWABuilder first finds ServiceWorker, then after tests says there's none and no offline support #4552

Open
pointke opened this issue Nov 30, 2023 · 1 comment
Labels

Comments

@pointke
Copy link

pointke commented Nov 30, 2023

What happened?

The PWA at https://prefrontalcortex.de/labs/model-viewer/upload/digivid/pwa/3/ is fully functional offline and does precache resources properly as far as I can tell (and test).

However, PWABuilder behaves weird:

  • first, it says "Service Worker found" but shows no offline support.
    image
  • then, after tests are complete ("testing in progress" not shown anymore), it says there's no service worker at all:
    image
  • subsequently, when generating an APK all the assets that should be precached are missing (the resulting apk is 500kb while it should be >50 MB with all resources included for offline use that are specified in the precache list).

I'm not sure what the issue is -
the PWA is created and configured with vite-pwa and works correctly, so I think something about the detection from PWABuilder fails.

How do we reproduce the behavior?

  1. Go to https://www.pwabuilder.com/reportcard?site=https://prefrontalcortex.de/labs/model-viewer/upload/digivid/pwa/3/
  2. See that there's a service worker detected but not offline support
  3. Wait until tests have run
  4. See that no service worker is detected anymore
  5. Generate APK
  6. Note that APK is tiny and doesn't have any precached resources

What do you expect to happen?

Service worker and offline support are detected, generated APK contains offline resources from precache.

What environment were you using?

Windows 11
Chrome latest

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo 📃
Development

No branches or pull requests

3 participants