KIvanow / installedApps

cordova plugin for listing installed on the device apps names and app packages
17 stars 7 forks source link

Cordova Installed Apps Plugin

Simple plugin that returns all of the installed apps, their names and their packages on android devices.

Install

recomended

$ sudo plugman install --platform android --project . --plugin https://github.com/KIvanow/installedApps.git

alternatively

$ sudo plugman install --platform android --project . --plugin info.quatinus.cordova.plugins.installedapps

Using

    var success = function( object ) {
        console.log( object );
    }

    var failure = function() {
        alert("Error calling Installed Apps Plugin");
    }

    installedApps.getPackages( success, failure);

Or

    installedApps.getNames( success, failure);

Or

    installedApps.getNamesAndPackages( success, failure);

Result will be array of objects, each containing name, package or both.

It works great with this plugin for starting apps from cordova http://plugins.cordova.io/#/package/com.hutchind.cordova.plugins.launcher