iOS URL 方案或不存在通用链接 [英] iOS URL scheme or not existing Universal Link
问题描述
我正在开发可以通过发送到电子邮件的 url 链接打开的 Android 应用程序.域存在但路径不存在(例如 google.com/abcdefgh1234).我不是该网站的所有者,因此不可能将 AASA 文件放在那里.该链接还包含 jwt 以及我在应用程序中处理的一些信息.我想在 ios 上做同样的事情,但我发现,URL 方案不支持 http 并且通用链接需要该网站上的特殊文件.有没有办法在 iOS 上处理这个问题?
I was developing Android App that could be opened by url link sent to email. The domain exist but the path not (ex. google.com/abcdefgh1234). Im not an owner of the website so putting AASA file there is not possible. The link also contained jwt with some info that I was handling in the app. I wanted to do the same on ios but what I found, URL schemes doesn't support http and Universal Links need special file on that website. Is there a way to handle this on iOS?
推荐答案
您可以查看自定义 URL 方案 https://developer.apple.com/documentation/xcode/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app
You can check custom URL scheme https://developer.apple.com/documentation/xcode/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app
无需向服务器添加特殊文件即可工作.您只需要一个特殊链接,点击它后,您将被重定向到该应用程序(如果它存在于您的手机上).也许这就是你要找的
It will work without adding special file to the server. You need only a special link and after a tap on it, you will be redirected to that app (if it exists on your phone). Maybe this is what are you looking for
这篇关于iOS URL 方案或不存在通用链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!