List all app in device

Hi all,

I need to list app which installed in iphone device, and I look at one solution about that and It use LSApplicationWorkspace to list all app,


Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace");

NSObject* workspace = [LSApplicationWorkspace_class performSelector:@selector(defaultWorkspace)];

NSLog(@"apps: %@", [workspace performSelector:@selector(allApplications)]);

Please let me know, Apple will reject my app if I user that code ?

Hi


I have the same question. Did you submit your app with this code?

You should not do this. There is no public API for retrieving a list of apps installed on a device. The list of apps a person has installed on their device is their own business. If you have a need to communicate with other apps, please refer to Inter-App Communication for ways to accomplish that.


If you have need to control or manage the list of apps on a device, then you should be looking at Mobile Device Management. I would start here: https://developer.apple.com/enterprise.

List all app in device
 
 
Q