Skip to content

AssuredLabor/cordova-plugin-app-name

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

Reads the name of your app from the target build settings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 53.5%
  • JavaScript 46.5%