gpt4 book ai didi

javascript - 如何在 iOS 上的 PWA 中删除 "No Network"警报

转载 作者:行者123 更新时间:2023-11-28 23:42:46 24 4
gpt4 key购买 nike

当我的 iOS 设备未连接到网络时,打开我的渐进式 Web 应用程序时会弹出以下警报。如何删除它以使我的 PWA 更原生?

PWA Popup

最佳答案

您可以检查此 documentation 中的 web 应用程序 list 组件.

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.

这里有一些额外的链接供引用:

关于javascript - 如何在 iOS 上的 PWA 中删除 "No Network"警报,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53077245/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com