Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 843 Bytes

ios-cocoa-swift-en.md

File metadata and controls

32 lines (21 loc) · 843 Bytes
  1. If you do not have cocapods integrated in your app, follow this guide

  2. Add EMMA dependency 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

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

      let configuration = EMMAConfiguration()
      configuration.sessionKey = "%%%SESSION_KEY%%%"

      EMMA.startSession(with: configuration)

      return true
}