Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getVersionCode() is not working #110

Open
SuperStar518 opened this issue Jun 7, 2019 · 3 comments
Open

getVersionCode() is not working #110

SuperStar518 opened this issue Jun 7, 2019 · 3 comments

Comments

@SuperStar518
Copy link

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
Copy link

AGlezB commented Jun 10, 2019

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
Copy link

vibgup commented Jun 15, 2020

Hi @alidavid0418

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

@massimilianocom
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants