【发布时间】:2020-08-09 02:40:46
【问题描述】:
以下两个文件应该是同一个文件(一个 AASA 文件),不同之处在于第二个文件适用于更新的 iOS 版本。
但是根据https://branch.io/resources/aasa-validator/这个第一个文件是可以的:
{
"applinks": {
"apps": [],
"details": [
{
"appID": "1234567.mydomain.soft.MyApp",
"paths": ["*"]
}
]
},
"webcredentials": {
"apps": ["1234567.mydomain.soft.MyApp"]
}
}
而另一个无效:
{
"applinks": {
"details": [
{
"appIDs": [ "1234567.mydomain.soft.MyApp" ],
"components": [
{
"/": "/*",
"comment": "Matches any URL"
}
]
}
]
},
"webcredentials": {
"apps": [ "1234567.mydomain.soft.MyApp" ]
}
}
谁能告诉我为什么第二个有问题?
我看到这条消息:
-- This domain's AASA was pulled, but the JSON format seems Invalid.
【问题讨论】:
-
我也面临同样的问题,请问有什么解决办法吗?
-
将 ContentType 标头设置为 AASA 文件后,对我有用。
标签: ios swift ios-universal-links aasa