Reads the name of your app from the target build settings.
If you are using cordova-cli, install with:
cordova plugin add https://github.com/whiteoctober/cordova-plugin-app-version.git
If you are using jQuery, use:
cordova.getAppName().then(function (name) {
$('.version').text(name);
});
If not:
cordova.getAppName(function (name) {
alert(name);
});
## Credits
Written by Nick Chistyakov at AssuredLabor
Code based on the following posts: