iOS通用链接不起作用? [英] iOS universal links not working?

查看:1236
本文介绍了iOS通用链接不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法使用通用链接

运行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 was site.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通用链接不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆