NativeScript App Info
Read the app infos of your NativeScript app.
For iOS we read it from *.plist
's CFBundleShortVersionString
.
For Android we read the versionName
from AndroidManifest.xml
.
Feel free to donate
Or donate Bitcoins:
Also via greenaddress
Installation
Run the following command from the root of your project:
tns plugin add nativescript-appinfo
Or if you want to use the development version (nightly build), which maybe not stable!:
tns plugin add nativescript-appinfo@next
Usage
To use this plugin you must first require() it:
var appinfo = ;
getVersionName
appinfo;
getBuildNumber
appinfo;
getAppId
appinfo;