Cordova AppVersion Plugin

This Cordova/PhoneGap plugin reads the version of your app from the target build settings.

circle-info

To check the third party Cordova plugins, you need to create a custom build debugger (Android version or iOS version).

Demo

Import AppVersion plugin demo to your Monaca accountarrow-up-right

Enable the plugin in the Monaca IDE

  1. From the IDE menu, go to Config → Manage Cordova Plugins .

  2. Click the Import Cordova Plugin button. Then, choose to import the plugin using a ZIP file or a URL/package name.

API references

This section describes some of the main functions used in our demoarrow-up-right. For complete API references, please refer to the repositoryarrow-up-right.

getAppName()

Get the name of the app.

Return Value

  • Promise

Example

getPackageName()

Get the package name of the app.

Return Value

  • Promise

Example

getVersionCode()

Get the build identifier of the app.

Return Value

  • Promise

Example

alertVersionNum()

Get the version number of the app.

Return Value

  • Promise

Example

Last updated