Skip to main content

Code Initialization

Initialize the SDK in code. Use manual initialization to pass the configuration in a MoEngageSDKConfig instance, or file-based initialization to read the configuration from Info.plist.
  • Call any one of the below-given initialization methods on MoEngageCordovaBridge.shared in application:didFinishLaunchingWithOptions: method. Refer doc for more info on all the properties which can be configured using MoEngageSDKConfig.
  • Sample code to initialise from application:didFinishLaunchingWithOptions: method:

Data Center

In case your app wants to redirect data to a specific zone due to any data regulation policy please configure the zone in the MoEngageSDKConfig object. For more information on Data Center, refer here.