IssueRaiser

[web] Deprecate and remove `flutter_service_worker.js`

### 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.

Posted by ditman on Oct 15, 2024, 8:05 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,000 issues0 comments

github (SaaS)

[web] Deprecate and remove `flutter_service_worker.js`

ditmanOct 15, 2024, 8:05 PM

### 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.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue