user2993497
user2993497

Reputation: 585

How to remove "No Network" alert in my PWA on iOS

When my iOS device is not connected to a network, the alert below pops up in my Progressive Web App when opened. How can I remove this to give my PWA a more native feel?

PWA Popup

Upvotes: 1

Views: 938

Answers (1)

abielita
abielita

Reputation: 13469

You may check the web app manifest component found in this documentation.

When connecting to a network for the first time, a web browser reads the manifest file, downloads the resources given and stores them locally. Then, if there is no network connection, the browser uses the local cache to render the web app while offline.

Note: Do not confuse this with the older .manifest file used by AppCache. PWAs should use the service worker to implement caching and the web app manifest to enable "add to homescreen" and push messaging.

Here are some additional links for reference:

Upvotes: 1

Related Questions