App Version
$ ionic plugin add cordova-plugin-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
- Android
- iOS
Usage
import {AppVersion} from 'ionic-native';
AppVersion.getAppName();
AppVersion.getPackageName();
AppVersion.getVersionCode();
AppVersion.getVersionNumber();
Static Methods
getAppName()
Returns the name of the app
Returns:
Promise
getPackageName()
Returns the package name of the app
Returns:
Promise
getVersionCode()
Returns the build identifier of the app
Returns:
Promise
getVersionNumber()
Returns the version of the app
Returns:
Promise