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 initializating and updating 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 Center | SDK Host | Dashboard Host |
---|---|---|
DATA_CENTER_1 | sdk-01.moengage.com | dashboard-01.moengage.com |
DATA_CENTER_2 | sdk-02.moengage.com | dashboard-02.moengage.com |
DATA_CENTER_3 | sdk-03.moengage.com | dashboard-03.moengage.com |
warning |
Important Refer to the dashboard host to know the Data Center of your account.Please make sure that you consult with the MoEngage team before using this method for changing the data center in the SDK. |
For more information about MoEngage data centers, refer to Data Centers in MoEngage.