-
If you do not have cocapods integrated in your app, follow this guide
-
Add EMMA dependency to you Podfile file
pod 'eMMa'
- To download and install the dependency execute the following command in the terminal
pod install
- 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
}