Skip to content
This repository was archived by the owner on Sep 15, 2021. It is now read-only.

Updated appVersion plugin docs to reflect update in pull request #1038 #1039

Merged
merged 1 commit into from
Jan 15, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions docs/plugins/appVersion/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ Get the build identifier of the app

**Returns** `String`, with the build identifier

##### `getAppName()`

Get the name of the app

**Returns** `String`, with the app name

##### `getPackageName()`

Get the package name of the app

**Returns** `String`, with the package name

#### Example

```javascript
Expand All @@ -47,5 +59,15 @@ module.controller('myCtrl', function($scope, $cordovaAppVersion) {
});
}, false);

$cordovaAppVersion.getVersionCode().then(function (name) {
var appName = name;
});
}, false);

$cordovaAppVersion.getVersionCode().then(function (package) {
var appPackage = package;
});
}, false);

});
```