我们有一个移动应用程序 foo.com 当使用 iOS 移动应用程序的人尝试使用 foo.com 打开二维码时,即
https://webApp.foo.com/somepath?authToken
移动应用程序打开,用户收到错误消息。
即使安装了移动应用程序,Android 设备也能正常工作。
是否有一个 URL 可以在浏览器中打开链接,而无需更新应用程序或让用户卸载移动应用程序?
Google Bard 表示 safari: 的模式会打开浏览器,但是如何指定 https?
您需要
exclude
服务器上托管的apple-app-site-association
文件中的相关路径。
完整文档可在此处
获取你会想要类似的东西
{
"applinks": {
"details": [
{
"appIDs": [ "ABCDE12345.com.example.app", "ABCDE12345.com.example.app2" ],
"components": [
{
"/": "/*",
"comment": "Matches any URL."
},
{
"/": "/somepath",
"exclude": true,
"comment": "Matches any URL with a path that starts with /somepath/ and instructs the system not to open it as a universal link."
},
]
}
]
}