通用链接未重定向到我的ios应用

时间:2018-11-29 12:11:45

标签: swift

我第一次使用通用链接时,已经设置了所有必需的东西,但URL无法打开我的移动应用程序。我的服务器端文件带有特定文件夹,没有文件夹 enter image description here

enter image description here

我的Xcode设置是 enter image description here

我的应用授权文件目标成员资格也已选择 enter image description here

我要打开的链接 enter image description here

我的Appstore BundleID,前缀和配置 enter image description here

我在服务器上的应用程序网址为https://beta-dev.callingdr.com:92/patient

一切都很好,但是URL是在Safari中打开的Web应用程序,而没有打开内部移动应用程序,我不知道这是什么问题。帮帮我。我知道其重复的问题,但没有任何答案可以帮助我。

谢谢

1 个答案:

答案 0 :(得分:0)

我认为您的托管网址不正确。

根据Apple文档:

创建apple-app-site-association文件后,将其上传到HTTPS Web服务器的root.well-known子目录中。需要通过HTTPS在https://<domain>/apple-app-site-associationhttps://<domain>/.well-known/apple-app-site-association上无任何重定向地访问文件。接下来,您需要处理应用程序中的通用链接。

https://developer.apple.com/library/archive/documentation/General/Conceptual/AppSearch/UniversalLinks.html

我的建议:

https://beta-dev.callingdr.com:92/.well-known/apple-app-site-association

https://beta-dev.callingdr.com:92/apple-app-site-association