/nativescript-appversion

:1234: {N} plugin to retrieve the current version of the app

Primary LanguageJavaScriptMIT LicenseMIT

NativeScript AppVersion

Read the version of your NativeScript app.

For iOS we read it from *.plist's CFBundleShortVersionString.

For Android we read the versionName from AndroidManifest.xml.

Installation

Run the following command from the root of your project:

tns plugin add nativescript-appversion

Usage

To use this plugin you must first require() it:

var appversion = require("nativescript-appversion");

getVersionName

  appversion.getVersionName().then(function(v) {
      console.log("Your app version is: " + v);
  })