Skip to content

The iHasApp iOS Framework allows you to detect installed apps on a user's device.

License

Notifications You must be signed in to change notification settings

mperovic/iHasApp

 
 

Repository files navigation

iHasApp Framework

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.

Screenshot

Background

Basic Setup

  1. Add the iHasApp subfolder to your project and ensure that it is linked to the project target.
  2. Add #import "iHasApp.h" to the classes in which you wish to access iHasApp.
  3. Initialize and begin detection methods.

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);
}];

Requirements

  • iOS base SDK 5.0+
  • Internet connectivity for app dictionary retrieval

Note: schemeApps.json only adds ~180kB to your final, compiled IPA

App Store Safe

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.

Example Application

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.

Documentation

The iHasApp.h header file is structurally commented. If you would like to see the Appledoc representation, visit the iHasApp Documentation.

To-Do

  • Comment code where appropriate
  • Provide IPA processing code
  • Informational methods

Info & Support

About

The iHasApp iOS Framework allows you to detect installed apps on a user's device.

Resources

License

Stars

Watchers

Forks

Packages

No packages published