All Projects → sampart → Cordova Plugin App Version

sampart / Cordova Plugin App Version

Licence: mit
Cordova plugin to return the version number of the current app

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Cordova Plugin App Version

example-cordova-code-push-plugin
Ionic + Cordova Code Push Plugin Example
Stars: ✭ 45 (-87.97%)
Mutual labels:  cordova-plugin
ionic-native-sms-retriever-plugin-master
Cross-platform plugin for Cordova / PhoneGap to Retrieve SMS. Available for Android.
Stars: ✭ 16 (-95.72%)
Mutual labels:  cordova-plugin
Cordova Plugin Nativestorage
Cordova plugin: Native storage of variables in Android, iOS and Windows
Stars: ✭ 285 (-23.8%)
Mutual labels:  cordova-plugin
cordova-plugin-flurryanalytics
Adds support for all that Flurry Analytics flavored goodness to your Cordova based apps
Stars: ✭ 23 (-93.85%)
Mutual labels:  cordova-plugin
skwas-cordova-plugin-datetimepicker
Cordova Plugin for showing a native date, time or datetime picker.
Stars: ✭ 37 (-90.11%)
Mutual labels:  cordova-plugin
scanbot-sdk-example-ionic
Scanbot scanner SDK example app for Ionic with Cordova.
Stars: ✭ 24 (-93.58%)
Mutual labels:  cordova-plugin
cordova-plugin-playlist
🎶 A Cordova plugin for Android and iOS with native support for audio playlists, background support, and lock screen controls 🎶
Stars: ✭ 32 (-91.44%)
Mutual labels:  cordova-plugin
Vue Cordova
Vue.js plugin for Cordova
Stars: ✭ 328 (-12.3%)
Mutual labels:  cordova-plugin
cordova-plugin-today-widget
Add a today widget app extension target to your cordova project.
Stars: ✭ 51 (-86.36%)
Mutual labels:  cordova-plugin
Cordova Plugin Printer
Print HTML documents
Stars: ✭ 265 (-29.14%)
Mutual labels:  cordova-plugin
cordova-plugin-apkupdater
This plugin allows your Android app to download and install compressed updates without the Google Play Store.
Stars: ✭ 46 (-87.7%)
Mutual labels:  cordova-plugin
cordova-plugin-tesseract
Cordova Plugin for OCR process using Tesseract
Stars: ✭ 70 (-81.28%)
Mutual labels:  cordova-plugin
ionic-signature-pad
Ionic plugin to input singnature pad
Stars: ✭ 15 (-95.99%)
Mutual labels:  cordova-plugin
cordova-plugin-dbcopy
Copy SQLite Database from www folder to default app database location
Stars: ✭ 90 (-75.94%)
Mutual labels:  cordova-plugin
Cordova Plugin App Update
App updater for Cordova/PhoneGap
Stars: ✭ 290 (-22.46%)
Mutual labels:  cordova-plugin
cordova-swift3-plugin-example
Swift 3 Cordova plugin example to support blog post.
Stars: ✭ 23 (-93.85%)
Mutual labels:  cordova-plugin
cordova-plugin-smartconfig
A cordova plugin for Smart Configure ESP8266 & ESP32 with Espressif Esptouch protocol.
Stars: ✭ 17 (-95.45%)
Mutual labels:  cordova-plugin
Cordova Plugin Email Composer
Edit and send email messages
Stars: ✭ 333 (-10.96%)
Mutual labels:  cordova-plugin
Cordova qq
A Cordova wrapper around the Tencent QQ SDK for Android and iOS. Provides access to QQ ssoLogin, QQ Sharing, QQZone Sharing etc.
Stars: ✭ 294 (-21.39%)
Mutual labels:  cordova-plugin
Cordova Plugin Geofence
Geofencing plugin for cordova
Stars: ✭ 261 (-30.21%)
Mutual labels:  cordova-plugin

Cordova AppVersion plugin

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

We're looking for maintainers!

Installation

With cordova-cli

If you are using cordova-cli, install with:

cordova plugin add cordova-plugin-app-version

With plugman

With a plain plugman, you should be able to install with something like:

plugman --platform <ios|android> --project <directory> --plugin https://github.com/sampart/cordova-plugin-app-version.git

Manually in iOS

TODO: Write these instructions

Manually in Android

TODO: Write these instructions

Use from Javascript

If you are using jQuery, AngularJS, WinJS or any Promise/A library (Bluebird), promise style is supported. Use something like:

cordova.getAppVersion.getVersionNumber().then(function (version) {
    $('.version').text(version);
});

If not, pass a callback function:

cordova.getAppVersion.getVersionNumber(function (version) {
    alert(version);
});

In addition to the version number you can also retrieve other details about your application:

getAppName

Returns the name of the app. E.g. "My Awesome App"

getPackageName

Returns the package name of the app - the reversed domain name app identifier like com.example.myawesomeapp

getVersionCode

Returns the build identifier of the app

getVersionNumber

Returns the version number of the app

Credits

Written by Robert (Jamie) Munro at White October

Various others have contributed fixes and new features. See the CHANGELOG.md for details.

Original code based on the following Stack Overflow posts:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].