For accurate analytics around devices and tracking Re-installs, it is essential to track the Advertising Identifier. For more information, refer to Android Advertising ID Tracking.
Add Ad Identifier Library
Add the below dependency in the application-level build.gradle file.
implementation("com.google.android.gms:play-services-ads-identifier:18.0.1")
To enable Advertising Identifier tracking use the enableAdIdTracking() method as shown below.
import com.moengage.core.enableAdIdTracking
enableAdIdTracking(context)
MoESdkStateHelper.enableAdIdTracking(context);
Please ensure the application is complying with the Google Play Policy regarding Advertising Id tracking.