[英]How does iOS choose which app to launch when a generic URL Scheme is launched?
How does iOS choose which app to launch when a generic URL Scheme is launched? iOS在启动一个通用的URL Scheme时如何选择启动哪个app? What I know from older document is
我从旧文件中知道的是
Note: If more than one third-party app registers to handle the same URL scheme, there is currently no process for determining which app will be given that scheme.注意:如果超过一个第三方应用程序注册处理相同的 URL 方案,目前没有确定哪个应用程序将获得该方案的过程。
OR Is there any latest document that states this?或者有没有最新的文件说明这一点?
As per Apple documentation: To ensure uniqueness, specify a reverse DNS string that incorporates your company's domain and app name.根据 Apple 文档:为确保唯一性,请指定包含贵公司域名和应用程序名称的反向 DNS 字符串。 Although using a reverse DNS string is a best practice, it doesn't prevent other apps from registering the same scheme and handling the associated links.
尽管使用反向 DNS 字符串是最佳做法,但它不会阻止其他应用程序注册相同的方案并处理关联的链接。 Use universal links instead of custom URL schemes to define links that are uniquely associated with your website.
使用通用链接而不是自定义 URL 方案来定义与您的网站唯一关联的链接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.