Skip to content

[web] Deprecate and remove flutter_service_worker.js #156910

@ditman

Description

@ditman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    📜Issue was posted to Discord. Remove to have the issue reannounced. (For "design doc", "emergency")P1High-priority issues at the top of the work listdesign docTracks a design discussion documentplatform-webWeb applications specificallyteam-webOwned by Web platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions