ionic 5 app versions code example
Example: ionic get current app version
import { AppVersion } from '@ionic-native/app-version';
export class appVersion {
public version;
constructor(private appVersion: AppVersion) {
this.platform.ready().then(()=> {
this.appVersion.getVersionNumber().then((res)=>{
console.log(res);
}, (err)=>{
console.log(err);
});
});
}
}