Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 849 Bytes

README.md

File metadata and controls

36 lines (22 loc) · 849 Bytes

Cordova AppName plugin

Reads the name of your app from the target build settings.

Installation

With cordova-cli

If you are using cordova-cli, install with:

cordova plugin add https://github.com/whiteoctober/cordova-plugin-app-version.git

Use from Javascript

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: