问题描述
我无法使用通用链接
- 我们已将json内容添加到我们的网站 https://couchsurfing.com/apple-app -site-association
- 我已经仔细检查了它是否使用了正确的团队ID和捆绑包ID
- 在itunesConnect中启用了通用链接
运行Apple验证失败,并显示以下错误:错误,没有与网址相关的应用
running the apple validation fails with the following error:Error no apps associated with url
我认为验证程序可能无法正常运行,但是在iOS 10设备上运行(具有通用链接功能,并添加了正确的域),单击有效链接不会触发AppDelegate中的委托方法
I thought maybe the validator doesn't work, but running on iOS 10 device (universal link capability on, with added correct domain to it) clicking a valid link does not trigger the delegate methods in AppDelegate
有什么想法吗?
推荐答案
3周后...事实证明我的路径不正确.我的建议:
After 3 weeks... It turned out my path was incorrect. My suggestion:
在调试时将路径设置为["*", "/"]
,使一切正常工作并进行测试,然后在最后一步更新路径,仅包含受支持的路径.
set paths to ["*", "/"]
while debugging, get everything to work and test, then as the final step update the path and only include supported paths.
更具体地说,我尝试注册的链接是site.com/events/123123
,所以我将为/events
添加一个路径,这将错误地注册site.com/events
.我必须注册/events/*
To be more specific the link I was trying to register wassite.com/events/123123
so I would add a path for /events
which is wrong that would register site.com/events
. I had to register /events/*
instead
最简单的测试方法是将预期的链接输入到Notes
应用程序中,因为Safari对于何时应将链接作为Deeplink进行处理有一些奇怪的逻辑.
Also the easiest way to test it is to enter the expected links into the Notes
app, because Safari has some weird logic on when links should be handled as deeplink.
Apple的app-site-association验证器没有用,当深度链接实际起作用时,它仍然无法让我抱怨我的App id.而是使用 https://limitless-sierra-4673.herokuapp.com/
Apple's app-site-association validator is useless, it's still failing for me complaining about my App id, when deeplinks actually work. Instead use https://limitless-sierra-4673.herokuapp.com/
这篇关于iOS通用链接不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!