【发布时间】:2016-03-30 05:03:48
【问题描述】:
这是我实际的 apple-app-site-association 文件:
{
"applinks": {
"apps": [],
"details": [ {
"appID": "XXXXXXXXX.com.example.app",
"paths": [
"NOT /Registration",
"/*"
]
}]
}
}
我想让每个 urlendpoint 都作为通用链接工作,除了 example.com/Registration/whatever 但是上面的代码不起作用。如果我单击注册链接,它会打开我的应用程序。 我尝试了这个文件的很多版本,例如:“NOT /Registration/*”、“NOT /Registration*”、“NOT /Registration/”,但没有一个工作。 怎么了?
更新: 这是我的完整示例注册链接: https://example.com/Registration/AccountActivation?activationCode=XXXX
【问题讨论】:
-
我们能看到您点击的完整格式的 /Registration 链接吗?
-
@AlexBauer 我更新了我的问题
-
我相信
"NOT /Registration/*"是正确的...不知道为什么它的行为不同。单独使用 example.com/Registration 会发生什么? -
如果链接是 example.com/Registration ios 在 Safari 中打开链接。我将apple-app-site-association文件的内容修改为“NOT /Registration/*”
-
所以将 apple-app-site-association 文件设置为
NOT /Registration/*意味着example.com/Registration 可以正常工作,但example.com/Registration/AccountActivation?activationCode=XXXX 不能?