TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Daniel Amitay.
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.
iHasApp
subfolder to your project and ensure that it is linked to the project target.#import "iHasApp.h"
to the classes in which you wish to access iHasApp.Example code:
iHasApp *detectionObject = [[iHasApp alloc] init];
[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);
}];
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.