The iHasApp iOS Framework allows you to detect installed apps on a user's device.
Detection results can be in the form of an array of detected appIds, or an array of appDictionaries from the iTunes Search API.
- How To Detect Installed iOS Apps - (Feb 2011)
- Detailed iPhone App IPA Statistics - (May 2011)
- Add the iHasApp subfolder to your project and ensure that it is linked to the project target.
- Add
#import "iHasApp.h"
to the classes in which you wish to access iHasApp. - Initialize and begin detection methods.
Example code:
iHasApp *detectionObject = [iHasApp new];
[detectionObject detectAppDictionariesWithIncremental:^(NSArray *appDictionaries) {
NSLog(@"Incremental appDictionaries.count: %i", appDictionaries.count);
} withSuccess:^(NSArray *appDictionaries) {
NSLog(@"Successful appDictionaries.count: %i", appDictionaries.count);
} withFailure:^(NSError *error) {
NSLog(@"Failure: %@", error.localizedDescription);
}];
- iOS base SDK 5.0+
- Internet connectivity (optional if schemeApps.json is included)
Note: schemeApps.json only adds ~180kB to your final, compiled IPA
The iHasApp framework utilizes only public, documented, and non-deprecated APIs. It is completely App Store safe. There are already a number of approved apps on the App Store that have integrated iHasApp.
Like all things, it is always a prudent idea to either ask your users' permission or to include a clause in your EULA.
This framework comes with an example application that demonstrates detection initialization and information display.
The iHasAppExample project uses Olivier Poitrey's SDWebImage project to asynchronously display the app icons.
The iHasApp.h
header file is structurally commented. If you would like to see the Appledoc representation, visit the iHasApp Documentation.
- Comment code where appropriate
- Provide IPA processing code
- Informational methods
- Website: iHasApp
- Author: Daniel Amitay
- Email: [email protected]