简体   繁体   English

如何刷新Android主屏幕上的PWA图标?

[英]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:我的问题是:

  1. How can I refresh the PWA icon for myself?如何为自己刷新 PWA 图标? (I have access to my own phone) (我可以使用自己的手机)
  2. How can I do it for all users?我怎样才能为所有用户做到这一点? (I don't have access to their phone) (我无法访问他们的电话)

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.当您重新安装时,它应该使用您的新图像。

  • On windows I had a bug where the taskbar icon would reset back to the old one when right clicked.在 windows 上,我遇到了一个错误,即右键单击时任务栏图标会重置为旧图标。 All I had to do was reinstall and install for a second time and it would keep my new icon我所要做的就是重新安装并第二次安装,它会保留我的新图标

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在主屏幕android上实现Icon动画? - How to achieve Icon animation on home screen android? 如何在android的主屏幕上添加快捷方式图标? - how to add shortcut icon on home screen in android? Google Playstore 中的 PWA 应用未在设备主屏幕上显示图标 - PWA app in Google Playstore is not displaying icon on device home screen 如何在Android中实现主屏幕图标的行为? - How to implement an home screen icon behaving as button in android? 如何在Android的主屏幕上的我的应用程序图标上显示通知计数 - How to show Notification Count on My App Icon on Home Screen in Android 以编程方式安装Android应用程序时如何在主屏幕上添加图标? - How to add a icon on home screen while installing an android app programatically? 如何以编程方式在主屏幕应用程序图标android中设置徽章编号? - How set badge number in home screen app icon android programatically? 如何在主屏幕 android 上添加应用程序图标(react-native)? - How to add icon of the app on the home android screen (react-native)? 如何在Android的主屏幕上制作自己的主屏幕并只使用一个按钮/图标? - How to make our own HOME-SCREEN & take only one button/icon on Home Screen in Android? 如何从 PWA 应用程序主屏幕链接中删除 Chrome 徽标(Android O 预览版) - How to Remove Chrome Logo from PWA App Home Screen Link (Android O Preview)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM