问题描述
我需要从自己的应用程序中启动另一个应用程序,但是我没有其URL。所以我的问题是:
是否可以根据其捆绑标识符或trackid以编程方式找到另一个应用程序的url?
I need to launch another app from within my own app, but I don't have its URL. So my question is:Is there a way to find out another app's url programmatically based on its bundle identifier, or trackid?
推荐答案
否,无法以编程方式确定应用程序的自定义URL方案。应用程序的自定义方案(即使有)可能与您可能对该应用程序了解的其他事物完全无关。
No, there is no way to determine an app's custom URL scheme programmatically. An app's custom scheme, if there even is one, can be completely unrelated to anything else you may know about the app.
确定方案的唯一方法是访问应用程序的Info.plist文件,除非您使用的是越狱设备,否则无法在运行时完成。
The only way to determine the scheme is to access the app's Info.plist file, and unless you are on a jailbroken device, this can't be done at runtime.
这篇关于以编程方式查找应用程序的URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!