[英]Is it possible for an iOS app so the a list of other installed apps?
With „getPackageManager“ it is possible to get a list of installed applications on Android. 使用“ getPackageManager”可以获取Android上已安装应用程序的列表。 ( How to get a list of installed android applications and pick one to run )
( 如何获取已安装的android应用程序列表并选择一个运行 )
But: Is it also possible for apps to see a list of installed apps on iOS smartphones? 但是:应用程序还能查看iOS智能手机上已安装的应用程序列表吗? And if yes, is it possible to hide an iOS app, so that it can't be „seen“ by other apps in this list?
如果是,是否可以隐藏iOS应用程序,以便该列表中的其他应用程序无法“看到”该应用程序?
There is no way to get a complete list of all apps installed, but if you know what you are looking for, you CAN (probably) check if a specific app is installed by testing if you can open that app's URL: 无法获取所有已安装应用程序的完整列表,但是如果您知道要查找的内容,则可以(可能)通过测试是否可以打开该应用程序的URL来检查是否安装了特定应用程序:
let otherAppURL = ...
if UIApplication.sharedApplication().canOpenURL(otherAppURL)
{
// It's installed
}
else
{
// It's not installed
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.