admin管理员组文章数量:1416631
I have made a PWA by following the tutorial at /
I put the PWA on a server and when I navigate to it using Chrome on my Linux desktop I am able to download it to my desktop and then open it and use it. In Firefox I can still use the PWA after selecting "offline" from development tools. So it seems to be working to some extent.
When I navigate to the PWA from my Android phone using Firefox I can install the PWA to my home screen but if I turn off WiFi and mobile data it will not open the PWA. It warns that I am offline. Chrome does the same except instead of (when online) opening the site at example/pwa it opens the root ie. example which I do not want.
All i want to do is run some simple JavaScript code in a web browser when I am offline but it seems to be extremely difficult. I have tried to do this on several occasions over the last few years and can never get it to work.
I would very much appreciate seeing some minimal code to be able to deploy a PWA which I can put on a server, navigate to from my android phone, install on my android phone and then use offline in Chrome and Firefox. The example I quoted at the beginning of this question does not seem to do that.
本文标签: javascriptPWA not obtainable without internet connectionStack Overflow
版权声明:本文标题:javascript - PWA not obtainable without internet connection - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745255056a2650050.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论