la-haus / flutter-segment

Segment.io library for flutter
MIT License
22 stars 138 forks source link

Device_id is missing for Application Installed event (only for Android) #59

Open Mik77o opened 1 year ago

Mik77o commented 1 year ago

Sometimes in Segment device_id is empty for the Application Installed event. Applies to Android.

...
    "device": {
      "adTrackingEnabled": true,
      "advertisingId": "xxxx",
      "id": "",       <- here
      "manufacturer": "xxxx",
      "model": "xxxx",
      "name": "xxxx",
      "type": "android"
    },
...
Mik77o commented 1 year ago

@danielgomezrico, Maybe it is related to this -https://segment.com/docs/connections/sources/catalog/libraries/mobile/android/#analytics-android-and-unique-identifiers - context.device.id? What do you think?

danielgomezrico commented 1 year ago

I agree but I can not be sure, I can see this warning:

Note: From 4.10.1, Segment no longer collects the Android ID to comply with Google’s User Data Policy. You may need to upgrade your Analytics-Android version and your device-mode destination versions to be compliant with Google Play policies.