如何从PWA应用主屏幕链接中删除Chrome徽标(Android O预览) [英] How to Remove Chrome Logo from PWA App Home Screen Link (Android O Preview)

查看:172
本文介绍了如何从PWA应用主屏幕链接中删除Chrome徽标(Android O预览)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚更新到Android O Preview,并安装了一些PWA.在主屏幕上,图标旁边放置一个微型Chrome徽标.操作系统更新之前不存在此功能.

理想情况下,考虑到PWA已启用服务人员,我希望PWA在主屏幕上看起来像一个常规应用程序.

是否可以通过app.yaml或manifest.json中的某些设置将其删除?

解决方案

以上答案不正确,除了Chrome出现了向应用程序图标添加Chrome徽章的问题,该问题在以下更新中有所更改.

在发现问题之前,这是将网络应用添加到主屏幕的方式.

1)作为简单的快捷方式(如书签),当用户的网络浏览器不支持服务人员时(清单和服务"工作程序标签中进行验证).在这种情况下,添加到主屏幕的不是APK,而书签的快捷方式则由带有徽章的特定版本的Chrome表示.

2)作为已安装的APK :当目标网址具有有效的Manifest.json,服务人员和受支持的Chrome版本之一时,Chrome for Android使用WebAPK来构建和签名.包名称以"org.chromium.webapk"开头的APK文件. 在此处阅读,以了解有关APK生成和PWA分发的更多详细信息.

以上答案/链接文章中的不正确之处

1) Chrome徽章不是安全措施. Chrome小组为使用书签/URL快捷方式创建的Web应用添加了徽章,因为它在某些特定版本中未使用WebApk.徽章是一种简单的视觉表示形式,后来被撤回.

2) PWA并没有被WebApk取代. WebApk是PWA解决方案的一部分,该解决方案通过构建可安装的APK文件来获得类似于行为的本机应用程序,从而对PWA进行了补充. WebApk用于Android版Chrome浏览器来生成.apk文件. 这是官方的自述文件.

因此,如果您要构建PWA,您仍然可以放心,您不会落后于落后/遗弃/被遗弃的技术.它仍然在不断取得积极进展,在2018年3月(iOS 11.3)获得了iOS对服务工作者的支持,使其成为PWA游戏上最后一个主要的浏览器供应商.

I just updated to Android O Preview and installed a few PWAs. On the home screen a miniature Chrome logo is placed by the icon. This wasn't there before the OS update.

Ideally, I would like the PWA to look like a regular app on the home screen considering it has service workers enabled.

Is it possible to remove this with some settings in the app.yaml or manifest.json?

解决方案

Above answer is not accurate except for the part that Chrome had the issue of adding Chrome badge to App icon, which is changed in the following updates.

Before getting into whats wrong, here is how web apps are added to home screen.

1) As a simple shortcut(like a bookmark), when the users web browser don't have service worker support(which all recent versions of major browsers have support now), targeted web URL don't have a valid manifest.json and service worker files configured(this can be validated in Application-> Manifest and Service worker tabs in chrome developer tools). In this case, what is added to home screen is not an APK and the bookmark kind of shortcut was represented by a specific version of Chrome with a badge.

2) As an installed APK: When the targeted URL have a valid Manifest.json, service workers and one of supported Chrome version is used, Chrome for Android uses WebAPK to build and sign an .APK file with the package name starting "org.chromium.webapk". Read here for more details on apk generation and PWA distribution here.

Whats not accurate in the above answer/linked article,

1) The chrome badge is not a security measure. Chrome team added the badge for web apps created as bookmark/URL shortcut as it was not using WebApk in some particular version. Badge is a simple visual representation which was later withdrawn.

2) PWA is not abandoned in favor of WebApk. WebApk is part of PWA solution, which compliments PWA by building an installable APK file to get the native app like behavior. WebApk is used to build .apk files by Chrome for Android. Here is official read me file.

So if you are building a PWA, you can still be assured you are not left behind in outdated/abandoned/being abandoned technology. Its still a constantly progressing positively, which got iOS support for service worker in march-2018(iOS 11.3), making it the last major browser vendor aboard PWA game.

这篇关于如何从PWA应用主屏幕链接中删除Chrome徽标(Android O预览)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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