segment-integrations / analytics-android-integration-amplitude

The Amplitude analytics-android integration.
https://segment.com/docs/connections/destinations/catalog/amplitude/
2 stars 6 forks source link

Same Device Different Device Id case #55

Open hrg921 opened 4 years ago

hrg921 commented 4 years ago

Hi, I'm Software Enginner at Class101.

I’m troubleshooting about the same device having a different device ID in amplitude. In our case, Amplitude is integrated by device mode using the analytics-android-integration-amplitude module. I found that this module makes random UUID for each device for every case. I don’t know why the reset method is calling and how to use AAID for device identification.

Our Application is written by react-native, uses the native configuration for analytics initialization like below.

segmentAnalytics.useNativeConfiguration();

According to my guess, amplitude.regenerateDeviceId(); is always called while initializing and regenerate own deviceId only for amplitude.

In Amplitude, this issue looks like this.

image (15) image (14)

How can I deal with this issue?