pwa-builder / PWABuilder

The simplest way to create progressive web apps across platforms and devices. Start here. This repo is home to several projects in the PWABuilder family of tools.
https://docs.pwabuilder.com
Other
2.69k stars 282 forks source link

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

Open pointke opened 9 months ago

pointke commented 9 months ago

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:

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

hybridherbst commented 6 months ago

Any news on this? :)