Skip to content

Installation appVersion shows versionName instead of versionCode #902

Closed
@mtrezza

Description

@mtrezza

Issue:
The Android SDK sets the app's versionName (e.g. 2.0) instead of its versionCode (e.g. build 200) in the Installation field appVersion.

Expected:
The build number (i.e. versionCode) should be set.

Rationale:
It makes sense to set the version code, because:

  • server logic that is dependent on the build number can easily compare the versionCode being an integer, instead of versionName being a String.
  • a build number more accurately identifies an app package than a version code.
  • it contradicts the Parse iOS SDK which sets the app build number

However, correcting this inconsistency would be a breaking change for existing server logic.
Note: The API request header contains both, the build number and version name.

Affected Code:

String appVersion = pkgInfo.versionName;

String appVersion = pkgInfo.versionName;

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