Data Center

We support data redirection to our servers in different clusters. By default, the data center in SDK is set to DATA_CENTER_01, use MOSDKConfig while initialization and update the property according to your account's configuration.

import MoEngage

var sdkConfig = MOSDKConfig.init(appID: "appID")
sdkConfig.moeDataCenter = DATA_CENTER_01 //eg

// Possible Values for Data Center
typedef enum {
    DATA_CENTER_01,
    DATA_CENTER_02,
    DATA_CENTER_03
}MODataCenter;
#import<MoEngage/MoEngage.h>

MOSDKConfig* sdkConfig = [[MOSDKConfig alloc] initWithAppID:"appID"];
sdkConfig.moeDataCenter = DATA_CENTER_01;

// Possible Values for Data Center
typedef enum {
    DATA_CENTER_01,
    DATA_CENTER_02,
    DATA_CENTER_03
}MODataCenter;

Following is the host for different data centers, please update the app's configuration according to the DataCenter in case would want to whitelist the SDK API domain:

Data CenterSDK HostDashboard Host
DATA_CENTER_1sdk-01.moengage.comdashboard-01.moengage.com / app.moengage.com
DATA_CENTER_2sdk-02.moengage.comdashboard-02.moengage.com / app-eu.moengage.com
DATA_CENTER_3sdk-03.moengage.comdashboard-03.moengage.com / app-serv3.moengage.com

❗️

IMPORTANT:

Refer to the dashboard host to know the Data Center of your account.
Please make sure that you consult with MoEngage team before using this method for changing the data center in the SDK .