I am in need of Initialising WebEngage SDK based on some conditions.
if condition {
//initialise with `X` Account ID
} else {
//initialise with `Y` Account ID
}
But as per WebEnage-Documentation there is no method for initialising SDK with accountId. we just call below code in our AppDelegate's didFinishLaunchingWithOptions method.
WebEngage.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions)
and it initialise the SDK by reading account id from info.plist file. I tried updating Info.plist at run time but that didn't work. I am looking for the right approach to do it.