iOS通用链接不适用于HTTP [英] iOS Universal Link not working on HTTP

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

问题描述

我正在尝试通过网页链接打开一个应用程序,它在HTTPS域上就像一个超级按钮,但是当我尝试在HTTP(不安全)域上时,通用链接不起作用。

I'm trying to open an App from a Web Page link, it works like a charm on an HTTPS domain, but when I try on a HTTP (unsecure) domain the universal link isn't working.

有人知道我是否缺少配置吗?。

Anyone know if I'm missing a configuration?.

谢谢!。

推荐答案

如果我理解正确,那么您有一个要为其启用通用链接的应用程序。当您通过SSL保护用于通用链接的关联域时,一切正常。但是,当您尝试使用不受SSL保护的链接域时,该链接域将无法正常工作。

If I am understanding correctly, you have an app for which you are enabling Universal Links. When the associated-domain that you are using for Universal Linking is secured by SSL, everything is working properly. When you attempt to use a link domain that is not secured by SSL, however, it is not working.

假设我已正确理解,您遇到的问题最多。可能是Apple要求在您的链接域上安全提供AASA文件的要求。根据Apple的文档(此处为: https:// developer .apple.com / library / content / documentation / General / Conceptual / AppSearch / UniversalLinks.html ):

Assuming I have understood correctly, the issue you are encountering is most likely Apple's requirement that the AASA file be served securely on your link domain. As per Apple's documentation (here: https://developer.apple.com/library/content/documentation/General/Conceptual/AppSearch/UniversalLinks.html):


创建apple-app-site-association文件,然后将其上传到HTTPS Web服务器的根目录或.well-子目录。需要通过HTTPS在无任何重定向的情况下访问该文件,网址为https:/// apple-app-site-association或https:///.well-known/apple-app-site-association。接下来,您需要处理应用程序中的通用链接。

After you create the apple-app-site-association file, upload it to the root of your HTTPS web server or to the .well-known subdirectory. The file needs to be accessible via HTTPS—without any redirects—at https:///apple-app-site-association or https:///.well-known/apple-app-site-association. Next, you need to handle universal links in your app.

这篇关于iOS通用链接不适用于HTTP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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