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.

Installation

ionic cordova plugin add cordova-plugin-app-versionnpm 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=YOURPRODUCTKEYnpm install @ionic-enterprise/app-version

Supported Platforms

  • Android
  • iOS
  • Windows

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();