添加到主屏幕后,PWA(Progressive Web App)将使用什么浏览器? [英] What browser will PWA (Progressive Web App) use after adding to home screen?

查看:70
本文介绍了添加到主屏幕后,PWA(Progressive Web App)将使用什么浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很好奇添加到主屏幕后 PWA 将在引擎盖下使用什么浏览器.它是您最初选择添加到主屏幕"的那个浏览器吗?如果是,如果我将 PWA 添加到主屏幕怎么办?我手机上的 Chrome 然后删除 Chrome(假设现在我的手机上只剩下 Safari 了)?在主屏幕上点击它的图标时 PWA 仍然可以工作吗?

I"m curious about what browser PWA will use under the hood after adding to home screen. Is it the one where you originally chose "Add to home screen"? If yes, what if I add a PWA to home screen from Chrome on my phone and later delete Chrome (Assuming there's only Safari left on my phone now)? Will the PWA still work when clicking its icon on home screen?

推荐答案

我在 Android M 上的测试结果:

My test results on Android M:

  • Opera 37Firefox 50 在卸载浏览器时删除了 PWA.没有关于 PWA 删除的提示/警告.

  • Opera 37 and Firefox 50 removed the PWA when the browser was uninstalled. There was no prompt/warning about the PWA removal.

Chrome 55(测试版)Chrome 56(Canary) 的卸载不包括 PWA 的删除.尝试打开应用程序导致出现一条吐司消息:

Chrome 55 (beta) and Chrome 56 (Canary) uninstallation did not include removal of the PWA. Attempting to open the app resulted in a toast message:

应用未安装.

重新安装创建 PWA 的原始 Chrome 允许再次打开 PWA.其他版本的 Chrome 无法打开孤立的 Chrome PWA(如果仅安装了 Chrome 56,则无法打开 Chrome 55 PWA).

Reinstalling the original Chrome that created the PWA allowed the PWA to be opened again. Orphaned Chrome PWAs cannot be opened by a different version of Chrome (Chrome 55 PWA cannot open if only Chrome 56 installed).

以上所有浏览器都在各自的浏览器中打开了 PWA.即,Chrome 创建的 PWA 在 Chrome 中打开,Firefox 创建的 PWA 在 Firefox 中等.

All browsers above opened the PWA in their respective browsers. That is, a Chrome-created PWA opened in Chrome, Firefox-created PWA in Firefox, etc.

更新:借助新的改进的添加到主屏幕功能(现在可从 Chrome Dev 频道获得),PWA 安装在主屏幕并作为本机应用程序显示在应用程序抽屉中.我对此的测试结果:

UPDATE: With the new Improved Add to Homescreen feature (available now from the Chrome Dev channel), the PWA is installed on the homescreen and as a native app, shown in the app drawer. My test results for this:

  • 卸载 Chrome Dev 不包括删除 PWA.
  • 卸载 Chrome Dev 后,尝试打开 PWA 会导致应用选择器显示选择要启动的浏览器(假设有多个浏览器可用).选择 Opera 是允许的并且有效.如果只有一种浏览器可用(例如 Firefox),则 PWA 会自动与该浏览器一起启动.应用未全屏启动.
  • 卸载所有浏览器后,尝试打开 PWA 会导致启动 Google Play,其中显示 Chrome Dev 的应用信息.
  • 从应用程序抽屉中卸载 PWA 也会从主屏幕上移除 PWA 图标.

这篇关于添加到主屏幕后,PWA(Progressive Web App)将使用什么浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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