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?
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
- Capacitor
- Cordova
- Enterprise
$ npm install cordova-plugin-app-version
$ npm install @awesome-cordova-plugins/app-version
$ ionic cap sync
$ ionic cordova plugin add cordova-plugin-app-version
$ npm install @awesome-cordova-plugins/app-version
Ionic Enterprise comes with fully supported and maintained plugins from the Ionic Team. Learn More or if you're interested in an enterprise version of this plugin Contact Us
Supported Platforms
- Android
- iOS
- Windows
Usage
React
Learn more about using Ionic Native components in React
Angular
import { AppVersion } from '@awesome-cordova-plugins/app-version/ngx';
constructor(private appVersion: AppVersion) { }
...
this.appVersion.getAppName();
this.appVersion.getPackageName();
this.appVersion.getVersionCode();
this.appVersion.getVersionNumber();