app-version ionic 3 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);
});
});
}
}