App Version

Improve this doc

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

Repo: https://github.com/whiteoctober/cordova-plugin-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.

Supported platforms

Usage

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

constructor(private appVersion: AppVersion) { }

...


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

Instance Members

getAppName()

Returns the name of the app

Returns: Promise<any>

getPackageName()

Returns the package name of the app

Returns: Promise<any>

getVersionCode()

Returns the build identifier of the app

Returns: Promise<any>

getVersionNumber()

Returns the version of the app

Returns: Promise<any>

API

Native

General