string getAppVersionInfoByPackage(string)

Retrieves version information for an application.

Parameters

Name Description
packageName string
The name of the package to return information for.

Return

Returns a JSON-serialized string with the version information.

Remarks

The serialized object is an associative array with members: name and code. Name is the versionName from the manifest, and code is the versionCode as a String.

Examples


var x = KioWareUtils.getAppVersionInfoByPackage('com.adsi.kioware.client.mobile.app');
alert(x);
// output:
// {
// "name": "1.2",
// "code": "1234"
// }
    

Requirements

KioWare for Android version 3.17 or greater.