admin管理员组文章数量:1296895
My question is, Is it possible for the Users to acquire these changes without having to REINSTALL the PWA application?
I have a PWA application deployed in Production. The client already installed the deployed PWA application in their MOBILE devices and I want to DEPLOY another patch of updates in the PWA application in the HTTP server.
My question is, Is it possible for the Users to acquire these changes without having to REINSTALL the PWA application?
I have a PWA application deployed in Production. The client already installed the deployed PWA application in their MOBILE devices and I want to DEPLOY another patch of updates in the PWA application in the HTTP server.
Share Improve this question edited Jul 22, 2019 at 14:50 Francesco 10.9k8 gold badges75 silver badges120 bronze badges asked Jul 22, 2019 at 8:29 Wayne De Los AngelesWayne De Los Angeles 1391 silver badge7 bronze badges 1- Normally with a PWA, the site's cache gets loaded (for speed), and updates are loaded in the background to be shown to the user on their next visit. So if you use the app (for more than a few seconds while changes are loaded in the background). Then close the app and use it again you should see the changes. Should be no need for a reinstall. – Mathias Commented Jul 22, 2019 at 11:40
2 Answers
Reset to default 4Another simple way to update application is using workbox-window. You can detect updates in PWA and restart your application to get the last updates. For more detail, I suggest you read this link
I would suggest to read this link explaining in detail how the SW Updates work.
Long story short, if you deploy a new app version, the new SW will be installed on the client's side (using a separate/dedicated install
event) and then activated when the users navigates to an URL different from the PWA one.
There is also a built in service workers feature called "fail safe". Within at most 24H the SW checks if a newer version is available and, if so, attempts to update to it.
I wrote a PWA series and here a post about Service Workers and caching strategies if you want to read more.
本文标签: javascriptHow do you push Application updates on an installed PWA applicationStack Overflow
版权声明:本文标题:javascript - How do you push Application updates on an installed PWA application? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741635649a2389622.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论