Skip to main content

Initialization

To initialize the iOS Application with the MoEngage Workspace ID from Settings in the dashboard. In your project, go to the AppDelegate file and call either of the initialize() of _MoEngageInitializer _instance in  applicationdidFinishLaunchingWithOptions() as shown below:
Make sure to set the correct Data Center while initializing the SDK. For more information, refer to the following link.
Sample code to initialize in applicationdidFinishLaunchingWithOptions()

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 MOSDKConfig object. For more information on Data Center, refer here.