Access the native app version in JavaScript
Switch branches/tags
Nothing to show
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Added Android support Apr 24, 2015
www Fixed a bug with the JavaScript when used with the Device plugin Apr 24, 2015
LICENSE Initial commit Apr 24, 2015 Updated id for NPM release Apr 25, 2015
package.json Updated id for NPM release Apr 25, 2015
plugin.xml Updated id for NPM release Apr 25, 2015

Cordova App Version Plugin

Cordova/PhoneGap plugin for accessing the native app's version and build number within JavaScript. The values are bootstrapped at app load and can be used synchronously.

Supported Platforms

  • iOS
  • Android


The plugin can be installed with the Cordova CLI:

cordova plugin add cordova-plugin-appversion

The plugin is hosted on NPM so requires Cordova CLI 5.0.0 as a minimum. If you have any issues installing, make sure you have the most upto date version of Cordova from NPM:

npm install -g cordova


After deviceReady has fired you'll be able to access a new object in the global scope that contains both the app version and build number.

console.log(AppVersion.version); // e.g. "1.2.3"
console.log(; // e.g. 1234