Initialization

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

Import VWO_Insights

After, add the following Initialization code inside the function ->

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

VWO.configure(accountId: "", sdkKey: "", userId: "") // where accountID and appID are provided on the VWO account

VWO.startSessionRecording()							// For starting recording

Parameters

KeyDescription
ACCOUNT_ID
Required
VWO Account ID
SDK_KEY
Required
SDK Key
USER_ID
Optional
Unique identifier for the user

An example implementation is for Swift

import UIKit
import VWO_Insights


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