以编程方式查找应用程序的URL [英] Find out an app's URL programmatically

查看:129
本文介绍了以编程方式查找应用程序的URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从自己的应用程序中启动另一个应用程序,但是我没有其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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆