html - 对 PWA list 的更改不适用

标签 html progressive-web-apps

我在应用对 Progressive Web App list 所做的更新时遇到问题。更新东西在其他方面工作得很好,但如果我从我的 list 中更改某些东西,比如 background_color,启动屏幕颜色将不会改变。我已监控我的服务器以查看确实获取了 manifest.json。重启手机也不会应用更改,唯一的方法似乎是卸载 PWA 并添加回主屏幕。

在桌面上,chrome 开发人员工具显示 list 已正确获取,并且可以在开发工具中看到更改。这是预期的行为吗?有没有一种方法可以在安装 PWA 后对 list 应用进行更改?

最佳答案

这已在官方 The Web App Manifest 中得到解决文档:

Note: If you update your manifest.json file in the future, those changes won't be automatically picked up by the users unless they re-add your app to their home screen.

所以,这确实是预期的行为。

关于html - 对 PWA list 的更改不适用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50042616/

相关文章:

javascript - 渐进式WA : Do we have to add links to manifest to the header section of all website pages?

angular - 多个选项卡由同一个 Service Worker 控制

jQuery Mobile 导航栏包装在 4 个(而不是 5 个)元素上

html - 如何使用CSS更改IE8中禁用的html控件的颜色

java - 使用填充了先前数据的表单数据重新加载页面的简单方法

javascript - 如何使用 jquery 修复一个 div

android - 安装的 pwa 不会离线启动

jquery - 根据表单输入显示元素

angular - HammerJS 滑动不适用于具有溢出 css 属性的元素

javascript - 将 Service Worker 保存在缓存中是否有意义?