Skip to content

Commit

Permalink
doc(README): update device.cordova info (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
erisu authored Apr 1, 2022
1 parent 1e582ab commit 45a1316
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,17 @@ function onDeviceReady() {

## device.cordova

Get the version of Cordova running on the device.
Returns the Cordova platform's version that is bundled in the application.

The version information comes from the `cordova.js` file.

This property does not display other installed platforms' version information. Only the respective running platform's version is displayed.

Example:

If Cordova Android 10.1.1 is installed on the Cordova project, the `cordova.js` file, in the Android application, will contain `10.1.1`.

The `device.cordova` property will display `10.1.1`.

### Supported Platforms

Expand Down

0 comments on commit 45a1316

Please sign in to comment.