获取已安装的应用程序和特定应用程序的列表 [英] Get list of installed apps and lauch particular ones

查看:94
本文介绍了获取已安装的应用程序和特定应用程序的列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在iOS设备上安装已安装的应用程序?我知道iOS 5或更早版本是不可能的,但也许iOS 6提供了一些关于此的信息?

Is there any way to get the installed apps on an iOS device? I know that is not possible with iOS 5 or earlier but maybe iOS 6 provides some info about this?

如果不可能,我认为这可能是唯一的方式完成是尝试获取应用程序的URL方案并检查它们是否已安装。这是正确的吗?

If that is not possible, the only way I think this could be done is trying to get the URL scheme of the apps and check if they are installed. Is that correct?

此外,要启动应用程序,我应该使用 openURL:来自 UIApplication ,对吧?如果是这种情况,我需要知道我启动的应用程序何时完成或想要关闭,所以我可以显示我的应用程序;是可能的吗?

Also, to launch an app I should use openURL: from UIApplication, right? If that is the case, I need to know when the app that I launched is finished or wants to be closed, so I can show my app; is that possible?

推荐答案

没有API可以检查安装了哪些应用程序(您可以在SDK文档中进行检查) )。

No there is no API to check which apps are installed (you could have checked this in the SDK documentation).

您最好的猜测是使用URL方案来检查是否安装了知道应用程序。启动应用程序的唯一方法是通过其应用程序URL方案,无法检查应用程序是否已启动,现在有默认方式要求其他应用程序重新打开您的应用程序。因此,如果他们构建了这样的选项,那么您将受到其他应用程序开发人员的支配。

You best guess is to use the URL scheme to check whether know app are installed. The only way to launch the app is by its app URL scheme and there is no way to check wether the app is launched and there is now default way to ask the other app to re open your app. So you are left to the mercy of the other apps developer if they have build such an option.

这篇关于获取已安装的应用程序和特定应用程序的列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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