要知道在给定设备上安装了哪些应用,我按照以下方式进行了操作。
How to determine, whether an iphone app (previous/next version) is existed in our device or not?
这可以完美地找到 SIMULATOR 中安装的应用程序(用户的应用和系统应用)。
但未能在原始设备中找到iPod / iPhone。
为什么以及如何为设备进行纠正?
答案 0 :(得分:2)
非越狱设备无法实现此目的。
如果他们注册custom url
,有一种方法(确实是一种解决方法)来检测您自己的应用程序:此处描述了方法:How To Detect Installed iOS Apps
Registering Custom URL Schemes
Objective-C: Custom URL Schemes
编辑:在收到其他信息之后:您要检查您的应用是否已安装并且此应用已注册paintplus
网址
您可以使用此方法(在您的其他应用程序中)检查是否安装了paintplus
:
- (BOOL) paintplusInstalledOnThisDevice {
UIApplication *app = [UIApplication sharedApplication];
NSURL *paintplusURL = [NSURL URLWithString: @"paintplus://"];
return [app canOpenURL: paintplusURL];
}