如何创建二维码链接以避免iOS打开应用程序而是打开浏览器

问题描述 投票:0回答:1

我们有一个移动应用程序 foo.com 当使用 iOS 移动应用程序的人尝试使用 foo.com 打开二维码时,即

https://webApp.foo.com/somepath?authToken

移动应用程序打开,用户收到错误消息。

即使安装了移动应用程序,Android 设备也能正常工作。

是否有一个 URL 可以在浏览器中打开链接,而无需更新应用程序或让用户卸载移动应用程序?

Google Bard 表示 safari: 的模式会打开浏览器,但是如何指定 https?

ios iphone url qr-code
1个回答
0
投票

您需要

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."
               },
             ]
           }
       ]
   }
© www.soinside.com 2019 - 2024. All rights reserved.