子域名后的Universal Link打开URL

时间:2017-08-28 05:31:48

标签: ios swift

我正在研究通用链接。我的应用程序中有一些网址可以打开。

我在相关域名中添加了 portal.xyz.com

问题:我的应用程序在https://portal.xyz.com/上打开。我想继续这个URL到浏览器。只想打开具有起始路径https://portal.xyz.com/da/notification **。

的网址

我该怎么做?

1 个答案:

答案 0 :(得分:2)

请在项目中保留相同的关联域名,并且您需要从已在服务器上传的apple-app-site-association文件处理此案例,

{
  "applinks": {
      "apps": [],
      "details": [
          {
              "appID": "9JA89QQLNQ.portal.xyz.com"//keep your Apple Id of you application,
              "paths": [ "/da/notification/*"]
          }
      ]
  }
}

参考:https://developer.apple.com/library/content/documentation/General/Conceptual/AppSearch/UniversalLinks.html

希望它会有所帮助。