1

I'm using this code to get installed apps in ios :

 ( NSArray * )installedApps{


NSMutableArray * array = [[NSMutableArray alloc] init];
Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace");
NSObject* workspace = [LSApplicationWorkspace_class performSelector:@selector(defaultWorkspace)];
//  NSLog(@"apps: %@", [workspace performSelector:@selector(allApplications)]);


return [workspace performSelector:@selector(allApplications)];

}

that works, but I want to know if it's allowed on Apple store, and its not using a private API

kaybee99
  • 4,566
  • 2
  • 32
  • 42
the_best_one
  • 51
  • 1
  • 4
  • Hope this helps you : http://stackoverflow.com/questions/4614691/finding-list-of-installed-apps-on-iphone – soumya Aug 03 '15 at 10:17
  • This is a private API. It is not permitted on the App Store – Paulw11 Aug 03 '15 at 10:25
  • all depends on what you are doing with this private API... If you are not gonna harm, they will approve else they will not approve... – Fahim Parkar Aug 03 '15 at 11:08
  • thank you for the answer , @fahim in which case for example they will approve ? – the_best_one Aug 03 '15 at 11:54
  • can you tell me what you are gonna do by finding the names of the apps installed? all depend on what you are gonna do.... I used private API in many projects, but they never reject... – Fahim Parkar Aug 03 '15 at 12:12
  • its to suggest new applications to the user , anyway is there a way get the names of instaled applications in swift. – the_best_one Aug 03 '15 at 12:22
  • Yes, there must be.... – Fahim Parkar Aug 03 '15 at 12:29
  • Okay, if you are doing this, then Apple will approve. While submitting the app, let Apple know the code that you used as private API. When I use private API, I send my private API code to Apple and inform them what I am doing with that code. As they see I just use it for listing the app name, they will approve. If you mis-use private API, they will reject. – Fahim Parkar Aug 03 '15 at 12:30
  • ah ok , cool . thank you – the_best_one Aug 03 '15 at 12:34

0 Answers0