apple-app-site-association路径验证

问题描述 投票:-2回答:1

谁能告诉我我的关联文件有什么问题,因为该链接无法打开应用程序,下面是我的apple-app-site-association文件

{
  "applinks":
    {
    "apps": [],
    "details": [
      {
        "appID": "W3H4I4M89M.com.openexample.app",
        "paths": [
                    "/Login"                    
                 ]
      }
    ]
    }
}
ios swift xamarin.ios ios-universal-links
1个回答
0
投票

您可以查看有关adding Universal Links Support to Your Association File的苹果文档。

有一个示例文件样式;

{
    "applinks": {
        "apps": [],
        "details": [{
            "appID": "D3KQX62K1A.com.example.photoapp",
            "paths": ["/albums"]
            },
            {
            "appID": "D3KQX62K1A.com.example.videoapp",
            "paths": ["/videos"]
        }]
    }
}

然后苹果注意:

用于在paths数组中指定网站路径的字符串区分大小写。

enter image description here

因此,最好使用小写字母定义paths

{
  "applinks":
    {
    "apps": [],
    "details": [
      {
        "appID": "W3H4I4M89M.com.openexample.app",
        "paths": ["/login"]
      }
    ]
    }
}
© www.soinside.com 2019 - 2024. All rights reserved.