Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 811 Bytes

ios-cocoa-objectivec-en.md

File metadata and controls

33 lines (21 loc) · 811 Bytes
  1. If you do not have cocapods integrate in your app follow this guide

  2. Add EMMA dependeny to you Podfile file

pod 'eMMa'
  1. To download and install the dependency execute the following command in the terminal
pod install
  1. Import the SDK in your AppDelegate and start session in EMMA
#import <EMMA_iOS/EMMA_iOS.h>

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application
   didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

      EMMAConfiguration * configuration = [EMMAConfiguration new];
      [configuration setSessionKey:@"%%%SESSION_KEY%%%"];

      [EMMA startSessionWithConfiguration:configuration];

}
@end