multipleWebsiteIDs

  • WSDK initialize includes the ability to pass in an optional parameter that allows for Multiple WebsiteIDs to be activated together, when a new WID is initialized any events still saved are flushed out and sent.
  • Initialize the WSDK with the parameter isMultipleWebsiteIdMode: true passed every time.
  • When a user switches to another section of the app then initialize the WSDK again but for the DIFFERENT WebsiteID, and again every time they switch sections/WIDS(does not matter if the WID was initialized before)

Initialize

import co.wunderkind.sdk.Wunderkind

class MainActivity : AppCompatActivity() {
    val wunderkind = Wunderkind.getInstance()

    override fun onCreate(savedInstanceState: Bundle?) {
        wunderkind.initialize(this, myWebsiteID, true)
    }
}
import WunderkindKit

class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate {
    func application(
        _ application: UIApplication,
        didFinishLaunchingWithOptions
        launchOptions: [UIApplication.LaunchOptionsKey: Any]?)
        → Bool {
        Wunderkind.shared.initialize(websiteId: 1234, isDebugMode: true)
    }
}
Wunderkind().initialize(string WEBSITE_ID, bool isDebugMode, TRUE );
Wunderkind.initializeSdk(int WEBSITE_ID, bool isDebugMode, TRUE );