[英]How to refresh PWA icon on Android home screen?
I just updated the icon of my PWA and I want to see how it looks like on Android home screen immediately, without having to wait for days.我刚刚更新了我的 PWA 图标,我想立即在 Android 主屏幕上查看它的外观,而不必等待几天。 However, the icon does not want to refresh.
但是,图标不想刷新。
This is what I did in order to refresh the icon on Android home screen (and did not work):这是我为了刷新 Android 主屏幕上的图标所做的(但没有用):
-change the icons hosted on the server
-update the urls of manifest.json, pwa-service-worker.js, pwa-start.js by adding a ?v=x parameter
-update the urls of the icons in manifest.json and in the html meta tags by adding a ?v=x parameter
-clear PWA cache on android
-uninstalled PWA on android
-cleared website cache from chrome Android
-installed PWA again from chrome
After doing all this, when installing again the PWA, Android home screen still shows the previous icon.做完这一切,再次安装PWA时,Android主界面还是显示之前的图标。
My questions are:我的问题是:
After replacing your images or its paths, uninstall and reinstall your PWA.替换图像或其路径后,卸载并重新安装 PWA。 Delete all data from the installation if you get any prompts.
如果收到任何提示,请从安装中删除所有数据。
When you reinstall, it should be using your new images.当您重新安装时,它应该使用您的新图像。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.