0
I need to check the application version to make validations, the problem is that the promisse getVersionNumber() is returning me Undefined.
I tried something like:
ngOnInit(): void {
let versaoApp;
this.appVersion.getVersionNumber().then(version => {
versaoApp = version;
});
this.dialogs.alert(versaoApp);
But within Alert is returned Undefined.
In my config.xml, the version is filled in as follows:
<widget id="idapp" version="0.0.4" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">