This Tutorial aims to teach the user how to integrate his iOs app with cloud using SDK and how to use the products


Installing SDK

1 - Install SDK from cocoa Pod - Open terminal — $ cd <your application directory - $ pod init. - Navigate to project directory will find podFile - Open it and add pod ‘Appgain’. - press ctrl + S - Terminal —$ pod update —$ pod install - Wait until pod finish install. - Open your project from <_.xcworkspace

2 - Configure SDK in app delegate. - Allow application to access network.

  1. You need to add your URL schema and Associated domain for your app , the value will be : <app subdomain. or your custom domain if you have confugured it
  2. In AppDelegate.h, add #import <Appgain/Appgain.h
  3. In AppDelegate.m
     (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [AppGain initializeAppWithID:<your app id  andApiKey: <—-your app api key —— whenFinish:^(NSURLResponse *response, NSMutableDictionary *result) {
    //after app finish configure.
    //response for match app to link.
    //result show link matched data.}];
    return YES;


• Create <project-name -Bridging-Header.h

• add this on it #import <Appgain/Appgain.h

• AppGain.initializeApp(withID: <your app id , andApiKey: <your app api key )

{ (response, result) in }