Skip to main content

App Version

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

Stuck on a Cordova issue?

Don't waste precious time on plugin issues.

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.

Installation#

$ npm install cordova-plugin-app-version
$ npm install @ionic-native/app-version
$ ionic cap sync

Supported Platforms#

  • Android
  • iOS
  • Windows

Usage#

React#

Learn more about using Ionic Native components in React

Angular#

import { AppVersion } from '@ionic-native/app-version/ngx';
constructor(private appVersion: AppVersion) { }
...
this.appVersion.getAppName();
this.appVersion.getPackageName();
this.appVersion.getVersionCode();
this.appVersion.getVersionNumber();