React Native Apple应用程序网站关联-错误的JSON内容

zzlelutf  于 2023-01-05  发布在  React
关注(0)|答案(1)|浏览(115)

Apple-应用-站点关联失败。尚未找到解决方案。我在JSON验证程序中检查了有效的JSON,结果显示-valid JSON但它未重定向到应用。我托管了apple-app-site关联文件(没有Apple文档中提到的扩展名)对Web服务器和该URL没有限制。我已验证了此网页上的链接[https://branch.io/resources/aasa-validator]

但是它没有重定向应用程序。我发现了这个方法来验证AASA文件

curl -v https://app-site-association.cdn-apple.com/a/v1/yourdomain.com

回应是这样的

Mark bundle as not supporting multiuse
HTTP/1.1 404 Not Found
Date: Wed, 04 Jan 2023 17:52:29 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 10
Connection: keep-alive
Apple-Failure-Details: {"cause":"invalid character '/' looking for beginning of value"}
Apple-Failure-Reason: SWCERR00401 Bad JSON content

请有人帮助我了解这个JSON有什么问题

{
  "applinks": {
    "details": [
      {
        "appIDs": [
          "teamID.com.app.menu" //example 
        ],
        "components": [
          {
            "/": "/*",
            "comment": "Matches any URL whose path starts with /"
          },
          {
            "/": "/contact-us/*",
            "exclude": true,
            "comment": "Matches any URL whose path starts with /contact-us/ and instructs the system not to open it as a universal link"
          }
        ]
      }
    ]
  },
  "appclips": {
    "apps": [
      
    ]
  }
}

在模拟器

上添加此模式时链接重定向

相关问题