-
Notifications
You must be signed in to change notification settings - Fork 29.1k
Description
Document Link
https://flutter.dev/go/web-cleanup-service-worker
What problem are you solving?
The current default service worker implementation is one of (several) approaches that can be used by Flutter web, however it's not a good fit for all use-cases.
This confuses users when it doesn't behave as they expect.
Having a default service worker implementation sends the message that it is necessary or recommended by Flutter web to function correctly, but that is not the case.
This design doc discusses how the current implementation of flutter_service_worker.js
is going to be phased out (TL;DR: with a cleanup service worker for those currently using the default one), and how the flutter tools and flutter.js will eventually stop generating (or loading) a default service worker, allowing web app developers to do what's best for their specific apps.