Flutter教程

Ionic实战视频教程(跨平台): https://www.itying.com/goods-1067.html

Flutter实战视频教程(跨平台): https://www.itying.com/goods-1176.html

App Version

Contents

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

Requires Cordova plugin: cordova-plugin-app-version. For more info, please see the Cordova App Version docs.

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

联系我们?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.

Contact Us Today!

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

ionic cordova plugin add cordova-plugin-app-version npm install @ionic-native/app-version
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEY npm install @ionic-enterprise/app-version

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

  • Android
  • iOS
  • Windows

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

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

constructor(private appVersion: AppVersion) { }

...


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