Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How To Check Installed Application On iPhone Device

Tags:

iphone

I am developing an application in which I need to find the apps - such as Skype, Facebook - which are already installed on the iPhone device.

I need to check it Objective-C. Please give me a code snippet if possible; otherwise a link to the solution.

If it not possible then tell me another way to check installed application on iPhone device.

Thanks in advance.

like image 313
nivrutti Avatar asked Jul 14 '10 05:07

nivrutti


People also ask

How do I find installed apps on iPhone?

On your iPhone, open the App Store app and tap Updates in the lower right corner. Tap Purchased (if you have a family account, you may need to tap My Purchases) to see a list of all the apps you've downloaded, both on and off of your current device.

Why can't I find an installed app on my iPhone?

If you can't find an app that you installed on your iOS device, don't fret, just fire up Spotlight search by simply swiping down from the top of your home screen. Type the name of your app into the search field and the app will show up in the search results, if it is installed on your phone.


2 Answers

If the app you're checking for has a URI scheme registered, you can probe for that and assume the app is installed. Have a look at -(BOOL)canOpenURL:(NSURL *)url, try something along the lines of

if ( [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"fb://"]] )
{
     NSLog(@"will open facebook urls");
}

However, this does not give the guarantee that the genuine facebook app will respond to fb://

like image 187
mvds Avatar answered Oct 17 '22 01:10

mvds


    if ([[NSFileManager defaultManager] fileExistsAtPath:@"/Applications/Cydia.app"])
like image 20
Steve Ham Avatar answered Oct 17 '22 01:10

Steve Ham