Skip to main content

Data Redirection

If your app needs to redirect data to a specific zone due to a data regulation policy, please configure the zone in the MoEngage initializer object. Use the setDataCenter() in the MoEngage.Builder to specify the data center.
// this is the instance of the application class and "XXXXXXXXXXX" is the APP ID from the dashboard.
val moEngage = MoEngage.Builder(this, "XXXXXXXXXXX")
	       .setDataCenter([YOUR_DATA_CENTER])
	       .build()
MoEngage.initialiseDefaultInstance(moEngage)
The following details the different data centers and dashboard hosts
Data CenterDashboard host
DATA_CENTER_1dashboard-01.moengage.com
DATA_CENTER_2dashboard-02.moengage.com
DATA_CENTER_3dashboard-03.moengage.com
DATA_CENTER_4dashboard-04.moengage.com
DATA_CENTER_5dashboard-05.moengage.com
ImportantThe dashboard host URL provides the Data Center information of your account. Ensure that you contact your account manager or raise a support ticket to know the data center before you change the data center in the Android SDK.