sampart / cordova-plugin-app-version

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

getVersionCode() is not working #110

Open SuperStar518 opened 5 years ago

SuperStar518 commented 5 years ago
cordova.getAppVersion.getVersionCode(function (verCode) {
    alert(verCode);
});

retrieves nothing. Anyone help?

PS: I've found another substitute, but I'd like to know why this is not working.

AGlezB commented 5 years ago

Current NPM version defines the AppVersion global like this:

AppVersion: {
        available: true,
        build: 10009,
        version: "1.0.9"
}

Note that value of the build field does not match android versionCode.

vibgup commented 4 years ago

Hi @alidavid0418

Can I request you to share the substitute you have used to get version related information

massimilianocom commented 2 years ago

I would also be interested in the alternative you found can you share it?