cordova-plugin-app-version icon indicating copy to clipboard operation
cordova-plugin-app-version copied to clipboard

getVersionCode() is not working

Open SuperStar518 opened this issue 5 years ago • 3 comments

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.

SuperStar518 avatar Jun 07 '19 14:06 SuperStar518

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.

AGlezB avatar Jun 10 '19 20:06 AGlezB

Hi @alidavid0418

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

vibgup avatar Jun 15 '20 15:06 vibgup

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

massimilianocom avatar Sep 03 '21 16:09 massimilianocom