Skip to content

Cordova plugin return a list of installed applications or all on your smartphone.

License

Notifications You must be signed in to change notification settings

fbsanches/cordova-plugin-packagemanager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Title description
Information Installed Applications
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

About

Cordova plugin return a list of installed applications or all on your smartphone.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published