javascript - PWA not obtainable without internet connection - Stack Overflow

I have made a PWA by following the tutorial at I put the PWA on a server and when I navigate to it us

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745255056a4618905.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信