Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1928236
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T06:57:14+00:00 2026-05-17T06:57:14+00:00

Is it possible to get the information (app icon, app name, app location) about

  • 0

Is it possible to get the information (app icon, app name, app location) about all apps that have been installed on iPhone/iPod?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T06:57:14+00:00Added an answer on May 17, 2026 at 6:57 am

    there is a way to check if an application is installed or not, however, it does violate the Sandbox rules and Apple *may reject your app for using this. But it has been done before by other Apps that are available in the App Store, so feel free to try it

    Sometimes you may want to check if a specific app is installed on the device, in case you use custom URL schemes that require some other app to be installed (you could just gray out/disable some buttons then). Unfortunately, Apple apparently does not have any function that checks this for you, so I whipped one up. It does not enumerate every single app, instead it uses the MobileInstallation cache which is always up-to-date with SpringBoard and holds the Info dictionaries of all apps installed. Although you’re not “supposed” to access the cache, it’s readable by App Store apps. Here is my code which at least works perfectly fine with the Simulator 2.2.1:
    Code:

    // Declaration
    BOOL APCheckIfAppInstalled(NSString *bundleIdentifier); // Bundle identifier (eg. com.apple.mobilesafari) used to track apps
    
    // Implementation
    
    BOOL APCheckIfAppInstalled(NSString *bundleIdentifier)
    {
        static NSString *const cacheFileName = @"com.apple.mobile.installation.plist";
        NSString *relativeCachePath = [[@"Library" stringByAppendingPathComponent: @"Caches"] stringByAppendingPathComponent: cacheFileName];
        NSDictionary *cacheDict = nil;
        NSString *path = nil;
        // Loop through all possible paths the cache could be in
        for (short i = 0; 1; i++)
        {
    
            switch (i) {
        case 0: // Jailbroken apps will find the cache here; their home directory is /var/mobile
            path = [NSHomeDirectory() stringByAppendingPathComponent: relativeCachePath];
            break;
        case 1: // App Store apps and Simulator will find the cache here; home (/var/mobile/) is 2 directories above sandbox folder
            path = [[NSHomeDirectory() stringByAppendingPathComponent: @"../.."] stringByAppendingPathComponent: relativeCachePath];
            break;
        case 2: // If the app is anywhere else, default to hardcoded /var/mobile/
            path = [@"/var/mobile" stringByAppendingPathComponent: relativeCachePath];
            break;
        default: // Cache not found (loop not broken)
            return NO;
            break; }
    
            BOOL isDir = NO;
            if ([[NSFileManager defaultManager] fileExistsAtPath: path isDirectory: &isDir] && !isDir) // Ensure that file exists
                cacheDict = [NSDictionary dictionaryWithContentsOfFile: path];
    
            if (cacheDict) // If cache is loaded, then break the loop. If the loop is not "broken," it will return NO later (default: case)
                break;
        }
    
        NSDictionary *system = [cacheDict objectForKey: @"System"]; // First check all system (jailbroken) apps
        if ([system objectForKey: bundleIdentifier]) return YES;
        NSDictionary *user = [cacheDict objectForKey: @"User"]; // Then all the user (App Store /var/mobile/Applications) apps
        if ([user objectForKey: bundleIdentifier]) return YES;
    
        // If nothing returned YES already, we'll return NO now
        return NO;
    }
    

    Here is an example of this, assuming that your app is named “yourselfmadeapp” and is an app in the app store.
    Code:

    NSArray *bundles2Check = [NSArray arrayWithObjects: @"com.apple.mobilesafari", @"com.yourcompany.yourselfmadeapp", @"com.blahblah.nonexistent", nil];
    for (NSString *identifier in bundles2Check)
        if (APCheckIfAppInstalled(identifier))
            NSLog(@"App installed: %@", identifier);
        else
            NSLog(@"App not installed: %@", identifier);
    

    Log Output:
    Code:

    2009-01-30 12:19:20.250
    SomeApp[266:20b] App installed:
    com.apple.mobilesafari 2009-01-30
    12:19:20.254 SomeApp[266:20b] App
    installed:
    com.yourcompany.yourselfmadeapp
    2009-01-30 12:19:20.260
    SomeApp[266:20b] App not installed:
    com.blahblah.nonexistent

    Try this out before using it, I think Apple changed where the MobileInstallation.plist is located and if you do change it, try it out on an actual device not the simulator. Good Luck!

    http://www.iphonedevsdk.com/forum/iphone-sdk-development/37103-finding-out-what-apps-installed.html

    PK

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is is possible to get login credentials such as name/id if user does login
Is it possible to get the x,y coordinates of a Flex app within an
Is it possible to get the text of an OleDbCommand with all parameters replaced
Is it possible to get gdb or use some other tools to create a
Is it possible to get a thread dump of a Java Web Start application?
Is it possible to get notified (without polling, but via an event) when a
Is it possible to get notifications using SQL Server Reporting Services ? Say for
Is it possible to get the originating port from an ActionExecutingContext object? If so,
is it possible to get other sounds to a divx as it is with
Is it possible to get an Object's attribute through the property tag in struts?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.