tags:

views:

31

answers:

1

Hi... I am developing an application in which i need to find the apps which are already installed in iphone device such as Skype, facebook. I need to check it objective -c . Please give me code snippet if possible otherwise a link to get the solution. If it not possible then tell me other way to check installed application in iphone deveice .

Thanks in advance ......

+1  A: 

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://

mvds