la-haus / flutter-segment

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

The root value is missing the required field 'device_id' #85

Closed chenna8464 closed 12 months ago

chenna8464 commented 1 year ago

i am sending the data from segment to customer.io, here i am facing one issue which is this 👇 The root value is missing the required field 'device_id' i am passing the device_id everywhere both events and Identify call, but still getting the same error the code snippet is : this is for Identify call

Screenshot 2023-08-16 at 6 08 53 PM

this is for event call: Screenshot 2023-08-16 at 6 09 54 PM.
here i am getting deviceId from device_info_plus package

Screenshot 2023-08-16 at 6 13 39 PM

can you help me to fix this

chenna8464 commented 12 months ago

Closing this ticket, because I ran the app in the simulator not on the physical device, due to this device_id not getting captured, if you run the app on a physical device, the issue gets fixed,