Nistor Cristian
Nistor Cristian

Reputation: 1266

Service Worker Offline mode

I created a service worker and it caches all the files and it works offline. What I want is to have on Android the Offline label like in image.

The github demo for that page is here. I read the code but didn't found anything that would set that Offline in the left of Url bar.

I cheked multiple websites that have service workers but this is the online one that that I found that has that label.

https://github.com/gauntface/simple-push-demo

Upvotes: 0

Views: 215

Answers (1)

Daniel
Daniel

Reputation: 171

The label is actually not related to service workers. Chrome for Android let's you download web pages for offline use, and the label is shown when you are viewing a downloaded version of a page.

See here for an example: https://www.quora.com/How-do-I-save-a-web-page-for-offline-reading-in-Chrome-Android

Upvotes: 1

Related Questions