简体   繁体   English

iOS在启动一个通用的URL Scheme时如何选择启动哪个app?

[英]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.

相关问题 如何判断应用程序是从URL方案启动还是正常启动? - How do I tell if the app is launched from a URL scheme or a normal launch? 如何使用URL方案启动iOS Clock应用程序? - How can I launch the iOS Clock app using a a URL scheme? 应用使用自定义网址方案启动。 完成后如何将数据返回到调用应用程序? - App launched with custom URL scheme. How do I return data to the calling app when done? iOS App URL Scheme启动应用程序或打开应用程序商店 - iOS App URL Scheme launch application or open app store 当 Safari 不是使用 URL 方案的默认浏览器时,从 iOS 14 上的应用程序启动 Safari - Launch Safari from app on iOS 14 when Safari is not the default browser using the scheme of the URL 当用户按下由自定义网址方案IOS打开的第二个应用程序上的cancle按钮时,如何留在我们的原始应用程序上? - How to stay on our original app when user press cancle button on second app which is opened by custom url scheme IOS? iOS上的DropBox应用程序是否具有URL方案? - Does the DropBox app on iOS have a URL scheme? 使用URL方案启动Podcast应用 - Launch Podcast App With URL scheme 不进行后台处理时iOS App的自定义URL方案 - Custom URL Scheme for iOS App when not backgrounding 使用URL方案启动不活动的应用程序 - Launch inactive app with URL scheme
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM