cordova-plugin-app-version
cordova-plugin-app-version copied to clipboard
getVersionCode() is not working
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.
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
.
Hi @alidavid0418
Can I request you to share the substitute you have used to get version related information
I would also be interested in the alternative you found can you share it?