Skip to content
This repository was archived by the owner on Aug 10, 2022. It is now read-only.
This repository was archived by the owner on Aug 10, 2022. It is now read-only.

Guidance on showing "An update is available..." toast in Offline UX article #4191

Open
@jeffposnick

Description

@jeffposnick

Hey @mustafa-x—I was just reading through the "Inform the user when the app is ready for offline consumption" seciton of the
Offline UX Considerations article, and found the guidance there great!

One thing that could be added, though, would be some specific guidance around letting the user know that an offline-first web app has been updated "in the background" by the service worker, and that the user could refresh to get a newer version. That would normally be done via a Toast similar to the initial "This web app will now work offline" message.

If you wanted to link to a sample of how to detect both the initial registration and the fact that there's been an update to the service worker-managed content, you could use https://github.com/GoogleChrome/sw-precache/blob/master/demo/app/js/service-worker-registration.js#L29

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions