Amplitude-TypeScript: [bug] `Version` and `location_lat` and `location_lng` not being tracked

After migrating to this new library, I’m seeing events without Version, which was automatically tracked before (expo-analytics-amplitude who was a wrapper of Amplitude-Android and Amplitude-iOS).

(I’m also seeing null the location_lat and location_lng, which was automatically tracked before as well)

As you can see, there is a None now:

Screen Shot 2022-08-10 at 15 09 05 Screen Shot 2022-08-10 at 15 09 23

Raw:

{
  "$insert_id": "f82b7e89-3e36-4c0b-b508-00c21d09ee74",
  "$insert_key": "010cf28863bc2a1de01d0666c5da3fe85f#208",
  "$schema": 13,
  "_time": 1659654506324,
  "adid": null,
  "amplitude_attribution_ids": null,
  "amplitude_event_type": null,
  "amplitude_id": 441735958251,
  "app": 227935,
  "city": null,
  "client_event_time": "2022-08-04 23:08:26.324000",
  "client_upload_time": "2022-08-04 23:08:29.271000",
  "country": "United States",
  "data": {
    "group_first_event": {
    },
    "group_ids": {
    }
  },
  "data_type": "event",
  "device_brand": null,
  "device_carrier": "Cell-c",
  "device_family": "Google Nexus Phone",
  "device_id": "ae40a07e-8a16-4a0d-96c4-beb80f4960a2",
  "device_manufacturer": "LGE",
  "device_model": "Nexus 5X",
  "device_type": "Google Nexus 5X",
  "display_name": "Go to Explore",
  "dma": null,
  "event_id": 0,
  "event_properties": {
  },
  "event_time": "2022-08-04 23:08:26.324000",
  "event_type": "PAGE_EXPLORE",
  "global_user_properties": {
  },
  "group_properties": {
  },
  "groups": {
  },
  "idfa": null,
  "ip_address": "xxx",
  "is_attribution_event": false,
  "language": "English",
  "library": "amplitude-react-native-ts/0.2.1",
  "location_lat": null,
  "location_lng": null,
  "os": "android 6.0.1",
  "os_name": "android",
  "os_version": "6.0.1",
  "partner_id": null,
  "paying": null,
  "plan": {
  },
  "platform": "android",
  "region": null,
  "sample_rate": null,
  "server_received_time": "2022-08-04 23:08:29.271000",
  "server_upload_time": "2022-08-04 23:08:29.272000",
  "session_id": 1659654506118,
  "source_id": null,
  "start_version": null,
  "timeline_hidden": false,
  "user_creation_time": "2022-08-04 23:08:26.324000",
  "user_id": null,
  "user_properties": {
  },
  "uuid": "xxx",
  "version_name": null
}

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 20 (13 by maintainers)

Commits related to this issue

Most upvoted comments

The workaround works properly!

import Constants from 'expo-constants';

await initAmplitude(apiKey, undefined, {
      appVersion: Constants.manifest.version,
      trackingOptions: {
        adid: false,
      },
    }).promise;

@kevinpagtakhan I’m gonna be checking how that works. I just released a new version of my app, with the appVersion fixed.

After some users start using it, I’ll check what is going on there. Thanks!

Carrier (Amplitude native value) not being tracked either