Cordova App Version Plugin
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
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; // e.g. "1.2.3"console; // e.g. 1234