且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

iOS通用链接不适用于HTTP

更新时间:2023-01-05 20:09:20

如果我理解正确,那么您有一个要为其启用通用链接的应用程序。当您通过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.