cordova-android icon indicating copy to clipboard operation
cordova-android copied to clipboard

Android Play Store release version not being updated

Open jfoclpf opened this issue 2 weeks ago • 1 comments

Bug Report

Problem

What is expected to happen?

The Android Play Store /Play Console should coincide with the version in package.json and config.xml

What does actually happen?

Image

Version information

Checklist

  • [X] I searched for existing GitHub issues
  • [X] I updated all Cordova tooling to most recent version
  • [X] I included all the necessary information above

jfoclpf avatar Dec 12 '25 15:12 jfoclpf

To be clear the package.json is not used for versioning. Only the config.xml is. package.json is not suitable because you can optionally use different version numbers for each platform, which is something supported by config.xml.

Assuming you don't use the platform specific attributes The version="2.12.0" inside config.xml is used for the marketing version (the version label end users see) and to build a version code integer, which is used by the android OS to determine which version is actually newer.

The version code uses the formula MAJOR * 100 + MINOR * 10 + PATCH (if memory serves me right). The entire version code might be multiplied by 10 if you have ABI digit enabled, primarily used by old codebases that used crosswalk. The version code is an integer that must always be incrementing. You can't upload an APK to a track that has a version code less than what is already present in that track.

I'm not sure where the problem lies the google play screenshot shows that the user facing version is 2.12.0 matching your config.xml. Can you clarify more specifically what is wrong?

breautek avatar Dec 12 '25 16:12 breautek