Skip to content

[web] Do not nag users about not configured ServiceWorker. #116153

@ditman

Description

@ditman

Currently flutter.js nags users in the console if the Service worker not supported (or configured).

We have received several issues, and internal feedback about this:

We should NOT warn users in case that serviceWorker == null (the "(or configured)" part), just noop silently. A blank serviceWorker config is a sign that the user does NOT want to use our serviceWorker, not an issue.

We also should check: isSecureContext to tell users why the ServiceWorker may not be available, and point them to some documentation.

/cc @jacobsimionato

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work liste: flutter.jsIssues with Flutter web custom initialization through JS APIsplatform-webWeb applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions