我在应用对 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/