App Version

Contents

Reads the version of your app from the target build settings.

https://github.com/whiteoctober/cordova-plugin-app-version

Ionic 获取应用版本 App Version插件的安装(Installation)

ionic cordova plugin add cordova-plugin-app-version npm install @ionic-native/app-version

Ionic 获取应用版本 App Version插件支持的平台(Supported Platforms)

  • Android
  • iOS
  • Windows

Ionic 获取应用版本 App Version插件的用法(Usage)

import { AppVersion } from '@ionic-native/app-version';

constructor(private appVersion: AppVersion) { }

...


this.appVersion.getAppName();
this.appVersion.getPackageName();
this.appVersion.getVersionCode();
this.appVersion.getVersionNumber();