androidmoengage

MoeEngage Validation device could not registered


I am integrating MoeEngage for tacking events and attributes. I have followed the official documentation for integrating android SDK. I try to validate that moeEngage integration is working as expected.

// This is the instance of the application class and "XXXXXXXXXXX" is the APP ID from the dashboard.
    MoEngage moEngage = new MoEngage.Builder(this, BuildConfig.MOENGAGE_APP_ID)
            .enableSegmentIntegration()
            .setLogLevel(VERBOSE)
            .build();
    MoEngage.initialise(moEngage);

Event Tracking Snippet

/**
 * Track Event using {@linkplain MoEHelper}
 *
 * @param builderName The action name
 * @param eventParameter The event attribute name
 * @param eventValue The event attribute value
 */
public void trackDynamicEvent(String builderName, String eventParameter, String eventValue ) {
    PayloadBuilder builder = new PayloadBuilder();

    builder.putAttrString(eventParameter, eventValue);

    moEngageHeleperInstance.trackEvent(builderName, builder);
}

I am validating using QR code it is showing error

The device could not be registered. Click on the button to retry

I have followed these links

https://docs.moengage.com/docs/sdk-initialization

https://docs.moengage.com/docs/track-event

For validation

https://app.moengage.com/v3/#/integration/verify/android

Edit: Added dependency

def moengageVersion = "9.7.01"
implementation "com.moengage:moe-android-sdk:$moengageVersion"

Solution

  • Issue here is Segment Integration is enabled by calling enableSegmentIntegration(). From the dependency I see that you are using MoEngage directly not via Segment. Do not call enableSegmentIntegration() on the MoEngage.Builder and your issue should be resolved.