sampart / cordova-plugin-app-version

Cordova plugin to return the version number of the current app [not maintained]
MIT License
401 stars 195 forks source link

the app version code encoding rules? #98

Closed SaberDevel closed 6 years ago

SaberDevel commented 7 years ago

In ionic, I set config.xml: version="0.1.5"

appVersion.getVersionCode().then(function (versionCode) {
    console.log(versionCode);
});

console output:105

version="0.1.15"

console output:115

there are some phones that output:1152

i intend to set up a set of check and update mechanism based on app version code. how should I set up the remote version number according to the version of ionic?

run the app,from console output the version code?

Drarok commented 6 years ago

I can't confirm this. If I set version="0.1.5" in config.xml, then getVersionCode() resolves to "0.1.5".