Skip to content

Cordova plugin that provides a method for getting the app version number across platforms (iOs, Android, WP8)

Notifications You must be signed in to change notification settings

jfrumar/cordova-plugin-appinfo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-appinfo

forked from https://github.com/danmichaelo/cordova-plugin-appinfo

Access to Application informations, currently provided as follow:

  • identifier: Bundle Identifier for iOS, PackageName for Android
  • version: Version for iOS, versionName for Android
  • build: Build for iOS, versionCode for Android

This Plugin Can be installed using the Cordova CLI:

cordova plugin add https://github.com/yezhiming/cordova-plugin-appinfo.git

If you are not using the Cordova Command-line Interface, you might try Using Plugman to Manage Plugins.

The plugin has only been tested with Cordova 3.0.0, and might require modifications to work with older versions of Cordova.

Supported Platforms

  • Android
  • iPhone

Example

navigator.appInfo.getAppInfo(function(appInfo) {
  console.log('identifier: %s', appInfo.identifier);
  console.log('version: %s', appInfo.version);
  console.log('build: %s', appInfo.build);
}, function(err){
	alert(err);
});

About

Cordova plugin that provides a method for getting the app version number across platforms (iOs, Android, WP8)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 42.8%
  • Objective-C 34.9%
  • C# 11.9%
  • JavaScript 10.4%