cordova-plugin-packagemanager
v0.1.7
Published
A simple plugin that will return a list of installed applications or all on your smartphone.
Downloads
24
Maintainers
Readme
Title: Information Installed Applications
description: Returns a custom list of applications installed on the system.
cordova-plugin-packagemanager
A simple plugin that will return a list of installed applications or all on your smartphone.
Return uid, dataDir and packageName.
Installation
cordova plugin add cordova-plugin-packagemanager
Example
//Success Callback Receive
function successCallback(e) {
document.getElementById('divApps').innerHTML += JSON.stringify(e);
}
//Error Callback Receive
function errorCallback(e) {
alert('Error');
}
window.plugins.packagemanager.show(true, successCallback, errorCallback);
Parameters
1. InstalledApps (Boolean)
True: Displays installed applications
False: Shows all applications
2. successCallback (Function)
Success Callback Receive
* Return: JSONArray
* Type Return Example:
["10001;/data/data/com.sec.android.gallery3d;com.sec.android.gallery3d"]
Uid;DataDir;PackageName
3. errorCallback (Function)
Error Callback Receive
Supported Platforms
- Android