Data Redirection
In case your app wants to redirect data to a specific zone due to any 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)
// this is the instance of the application class and "XXXXXXXXXXX" is the APP ID from the dashboard.
MoEngage moEngage = new MoEngage.Builder(this, "XXXXXXXXXXX")
.setDataCenter([YOUR_DATA_CENTER])
.build();
MoEngage.initialiseDefaultInstance(moEngage);
Following details the different data centers and dashboard hosts
Data Center | Dashboard host |
---|---|
DATA_CENTER_1 |
dashboard-01.moengage.com |
DATA_CENTER_2 |
dashboard-02.moengage.com |
DATA_CENTER_3 |
dashboard-03.moengage.com |
DATA_CENTER_4 |
dashboard-04.moengage.com |
DATA_CENTER_5 |
dashboard-05.moengage.com |
warning |
Important The dashboard host URL provides the Data Center information of your account. Ensure that you contact your account manager or email support@moengage.com to know the data center before you change the data center in the Andriod SDK. |