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.
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.
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.
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://
if ([[NSFileManager defaultManager] fileExistsAtPath:@"/Applications/Cydia.app"])
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With