1

can i find out the list of All Application which is installed in my ios device. With the help of ios sdk. or any application or code which will give me the result for that.

please give me suggestion.

thanks in advance.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
jaydev
  • 1,629
  • 5
  • 17
  • 31
  • I know the way but that was using Private APIs, if u use that way then you will not be able to put your app on App Store. If you still want then let me know – Mehul Thakkar Apr 10 '14 at 04:45
  • @MehulThakkar please can you explain about private api for Finding list of installed apps on iphone then please suggest – jaydev Apr 10 '14 at 05:07
  • NSArray *allBundles = [[objc_getClass("SBApplicationController") sharedInstance] allApplications]; – Mehul Thakkar Apr 10 '14 at 05:55
  • from above command, you will get array of all SBApplications installed in your device, now you can get information of any Application by calling method of SBApplication(search private headers of in github), for ex. SBApplication *app=[allBundles objectAtIndex:2]; [app bundleIndentifier] will give it bundleId, [app displayIdentifier] will give appName – Mehul Thakkar Apr 10 '14 at 05:59

1 Answers1

1

You can get all the application list and name that user had installed using this code...

static NSString *const cacheFileName = @"com.apple.mobile.installation.plist";

    NSString *relativeCachePath = [[@"Library" stringByAppendingPathComponent: @"Caches"] stringByAppendingPathComponent: cacheFileName];

    NSString *path = [[NSHomeDirectory() stringByAppendingPathComponent: @"../.."] stringByAppendingPathComponent: relativeCachePath];

    cacheDict = [NSDictionary dictionaryWithContentsOfFile: path];

    user = [cacheDict objectForKey: @"User"];

i tested in ios6 it's working fine

Deep Gami
  • 508
  • 3
  • 13