1. Add import statement
Objective-C
Open your AppDelegate.m file, and add the following import statement:
Code Block |
---|
#import <AppoxeeSDK/AppoxeeSDK.h> |
Swift
Add to your Objective-C bridging header the following import statement
Code Block |
---|
#import <AppoxeeSDK/AppoxeeSDK.h> |
2.Add the following implementation to the method named: application:didFinishLaunchingWithOptions:
Objective-C
Code Block | ||
---|---|---|
| ||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Method takes into consideration a valid AppoxeeConfig.plist file in your application. [[Appoxee shared] engageAndAutoIntegrateWithLaunchOptions:launchOptions andDelegate:nil]; return YES; } |
Swift
Code Block |
---|
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Method takes into consideration a valid AppoxeeConfig.plist file in your application. Appoxee.shared()?.engageAndAutoIntegrateWithLaunchOptions(launchOptions, andDelegate: nil) return true } |