IOS Integration

Initialize the SDK

After installing the SDK, initialize the app inside your Appdelegate file following the below-mentioned steps.


import UIKit
import VWO_Insights_ios_flutter_sdk
 
 
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
     
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
         
        VWO.configure(accountId:"" , sdkKey: "", userId: ""){
           VWO.startSessionRecording()
        }
        return true
    }
}

After the initialization, add the following key to your plist.

<key>NSPrincipalClass</key>
 
<string>VWOPrincipleClass</string>