改进的添加到主屏幕(WebAPK)图标和放大在清单更新后,Chrome浏览器上已安装的网络应用的名称不会升级 [英] Improved Add To Homescreen (WebAPK) icon & name for installed web app on Google Chrome not upgrading after manifest update

查看:224
本文介绍了改进的添加到主屏幕(WebAPK)图标和放大在清单更新后,Chrome浏览器上已安装的网络应用的名称不会升级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站,可以满足谷歌浏览器针对Android的改进添加到主屏幕(A2HS)功能的所有先决条件。我可以安装应用程序,并且APK已经形成并安装在设备上,并且图标可以在主屏幕上显示。



谷歌开发者博客文档,据说现在用改进A2HS ,随后在访问站点后,可以使用新的图标和名称修改 manifest.json 文件,安装的Web应用程序的图标和名称应该升级:


您现在可以更新渐进式Web应用程序的图标和
名称并将其反映给用户。
更改您的图标或名称清单将在用户
随后打开该网站后更新主屏幕上的图标。


我试图用新值修改清单,并验证修改后的清单在网站再次打开时正在下载到浏览器中,但已安装的Web应用程序的名称和图标更新没有发生。这是在Android版v63的Chrome上进行测试。



我如何得到它的工作?是否有任何需要照顾的特定步骤?我错过了什么?

解决方案

根据我的阅读,如果您能够从您的网站创建WebAPK,那么您'b
$ b

我试着在我的 manifest.json 中更改我的短名称以查看如果应用程序名称更新,但无济于事。所以我认为这不是我们可以控制的,因为我们可以满足改进A2HS的所有要求。



我不知道Chrome需要多长时间才能生成新的对于我们的网页,我也不知道它是什么时候发生的,因为我没有足够的耐心等待太久(我已经等了大约一个小时),所以请一定要记住一点盐。


I have a website that meets all the pre-requisites for Google Chrome for Android's "improved" add-to-homescreen (A2HS) feature. I can install the app and a APK is formed and gets installed on the device and icon is available on homescreen.

In the Google developer blog documentation, it is said that with the "Improved" A2HS now, it's possible to modify the manifest.json file with new icon and name after the site is visited subsequently, the installed web app's icon and name should upgrade:

You now have the ability to update your Progressive Web App's icon and name and have it reflected to the user. Changing your icon or name in the manifest will update the icon on the home screen after the user has subsequently opened the site.

I have tried to modify the manifest with new values and verified that the modified manifest is being downloaded to the browser when the site is opened again, but the update of the name and icon for the installed web app does not happen. This is tested on Chrome for Android v63.

How do I get it working? Are there any particular steps that need to be taken care of? Am I missing something?

解决方案

According to what I read, if you are able to create a WebAPK from your website, then you're all set for improved A2HS.

I've tried changing my shortname in my manifest.json to see if the app name updates, but to no avail. So I assume that this isn't something we could control, since we fit all the requirements of improved A2HS.

I do not know how long Chrome needs to generate a new APK for our pages, nor do I know when exactly it does this as I'm not patient enough to wait too long(I've waited for about an hour), so do take my word with a grain of salt.

这篇关于改进的添加到主屏幕(WebAPK)图标和放大在清单更新后,Chrome浏览器上已安装的网络应用的名称不会升级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆