Google的PWA文档指出:“ If the user clicks on a link within an installed app to https://example.com/read, it would be caught by the intent and opened in the Progressive Web App.”
但是,我发现事实并非如此。从Chrome或Gmail等其他应用中单击的指向我的应用的链接不会在Chrome操作系统上启动已安装的PWA。我似乎无法告诉Deep Link已安装的PWA。安装我的PWA时,清单是这样的:
{
"name": "MyApp",
"short_name": "MyApp",
"description": "MyApp is cool",
"lang": "en-US",
"icons": [
...
],
"start_url": "/",
"display": "standalone",
"scope": "/"
}
有人知道这是否可能吗?第三方OAuth重定向应该如何在PWA中发生?
更新:我发现Android实际上确实捕获了已安装的PWA的意图并启动了它,而不是使用Web浏览器来启动它,但是在Chrome OS中却不会发生同样的情况。他们打算将这项功能引入Chromebook时知道吗?