Manual integration

For Cocoa Pods Integration click here


Note:

You’ll need an App Token in order to proceed. If you don’t have one add an app here or get the App Token of an existing app.

Bundle ID  App Token pair is unique. An App Token cannot be used in another app/target with different Bundle ID

We support apps running on iOS 8.0 and later.


Step 1: Click here to download the Inapptics SDK.

Step 2: Extract the downloaded archive file.

Step 3: Open your project in Xcode.

Step 4: Select your project target and switch to the General tab. Drag and drop Inapptics.framework into the project's Embedded Binaries section.

Step 5: Make sure the 'Copy items if needed' checkbox is checked.

Step 6: Switch to the Build Phases tab and add a new Run Script Phase with the following code snippet:

bash "./Inapptics.framework/strip-frameworks.sh"

Step 7: Finally, edit your AppDelegate file:

  1. Import the Inapptics module
  2. Add Inapptics initialization code in -application:didFinishLaunchingWithOptions: method:

@import Inapptics;

...

- (BOOL)application:(UIApplication *)application
        didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
{
    // Override point for customization after application launch.

    ...

    [Inapptics letsGoWithAppToken:@"YOUR_APP_TOKEN"];
    return YES;
}
import Inapptics

...

func application(application: UIApplication, didFinishLaunchingWithOptions
                 launchOptions: [NSObject: AnyObject]?) -> Bool
{
    // Override point for customization after application launch.

    ...

    Inapptics.letsGo(withAppToken: "YOUR_APP_TOKEN")
    return true
}

Congratulations! Inapptics is now integrated into your project target. Perform a session on your app, go to the background and you’ll see the data on your dashboard in less than a minute.

Cocoa Pods

For Manual Integration click here


Note:

You’ll need an App Token in order to proceed. If you don’t have one add an app here or get the App Token of an existing app.

Bundle ID  App Token pair is unique. An App Token cannot be used in another app/target with different Bundle ID

We support apps running on iOS 8.0 and later.


Step 1: Create a Podfile in your project's root directory, if it doesn't exist yet.

Step 2: Add the Inapptics pod in Podfile under your desired target:

target 'YOUR-TARGET'
    ...
    pod 'Inapptics'
end

Step 3: Run pod repo update && pod install in terminal.

Step 4: Open your project using the generated *.xcworkspace file.

Step 5: Finally, edit your AppDelegate file:

  1. Import the Inapptics module
  2. Add Inapptics initialization code in -application:didFinishLaunchingWithOptions: method:

@import Inapptics;

...

- (BOOL)application:(UIApplication *)application
        didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
{
    // Override point for customization after application launch.

    ...

    [Inapptics letsGoWithAppToken:@"YOUR_APP_TOKEN"];
    return YES;
}
import Inapptics

...

func application(application: UIApplication, didFinishLaunchingWithOptions
                 launchOptions: [NSObject: AnyObject]?) -> Bool
{
    // Override point for customization after application launch.

    ...

    Inapptics.letsGo(withAppToken: "YOUR_APP_TOKEN")
    return true
}

Congratulations! Inapptics is now integrated into your project target. Perform a session on your app, go to the background and you’ll see the data on your dashboard in less than a minute.