https://github.com/welldone-software/cordova-plugin-app-info
A cordova (phonegap) plugin exposing application information (version, technical and display name, debug mode etc)
https://github.com/welldone-software/cordova-plugin-app-info
Last synced: about 1 month ago
JSON representation
A cordova (phonegap) plugin exposing application information (version, technical and display name, debug mode etc)
- Host: GitHub
- URL: https://github.com/welldone-software/cordova-plugin-app-info
- Owner: welldone-software
- Created: 2014-04-20T11:27:13.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-04-20T14:14:48.000Z (about 12 years ago)
- Last Synced: 2025-02-26T04:34:10.260Z (over 1 year ago)
- Language: Java
- Size: 125 KB
- Stars: 2
- Watchers: 5
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
cordova-plugin-app-info
===
Get information about the native application wrapping your html app, such as the app version, name, displayName and build (debug/release) status.
Supported platfroms
===
+ Cordova command line >= 3.0.
+ Android and iOS. WP8 is on its way.
Usage
===
```JavaScript
window.cordova.getAppInfo(
function(info){
alert(
'Is Debug: ' + info.debug
+ ', Display Name: ' + info.displayName
+ ', Technical Name: ' + info.name
+ ', Version: ' + info.version
);
}, function(err){
alert(err);
}
);
```
Installation
===
```bash
cordova plugins add 'https://github.com/welldone-software/cordova-plugin-app-info.git'
```
iOS quriks
===
The `debug` property on ios is set at compile time using the preprocessor symbol `DEBUG` as follows.
```ObjC
BOOL debug = NO;
#ifdef DEBUG
debug = YES;
#endif
```
If the `DEBUG` preprocessor symbol is not defined in your debug builds, you will always get a value of false.
Please make sure the symbol is available or add it yourself. See [Apple Build Setting Docs on 'Preprocessor Macros'](https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html#//apple_ref/doc/uid/TP40003931-CH3-SW13).
License
===
MIT