Skip to content

Support getVersion in React Native app #219

@peteroid

Description

@peteroid

Currently, the app version is not being logged. The prop version_name is null in the form data of the POST api.amplitude.com requests.

However, we can explicitly set the version name as following.

import { getVersion } from 'react-native-device-info'
import Amplitude from 'amplitude-js'
// ...
Amplitude.getInstance().setVersionName(getVersion())
// ...

Is it possible to add getVersion to the array here https://github.com/amplitude/Amplitude-JavaScript/blob/master/src/amplitude-client.js#L191 ?

ref:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions