[英]How to refresh PWA icon on Android home screen?
我剛剛更新了我的 PWA 圖標,我想立即在 Android 主屏幕上查看它的外觀,而不必等待幾天。 但是,圖標不想刷新。
這是我為了刷新 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
做完這一切,再次安裝PWA時,Android主界面還是顯示之前的圖標。
我的問題是:
替換圖像或其路徑后,卸載並重新安裝 PWA。 如果收到任何提示,請從安裝中刪除所有數據。
當您重新安裝時,它應該使用您的新圖像。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.