Reputation: 951
Any cordova pulgin ? What all things i need to import in .java file for getting installed apps on android?
Upvotes: 4
Views: 4879
Reputation: 81
Try cordova-plugin-intent-list plugin. It returns applications list with Base64 encoded icons. Also you can get Intent label and package name (i.e. to start app with this plugin).
Upvotes: 0
Reputation: 2561
I know it's late to answer the question, but I faced the same problem and tested both plugins Deep Mehta
referred to in his answer. unfortunately none of them worked. The problem was when testing on devices that use company's custom UI such as HUAWEI, plugins he referred to were only returning the launcher itself!!
After more digging I finally found a nice plugin which works like a charm!The plugin is called cordova-plugin-appavailability
and is available at https://github.com/ohh2ahh/AppAvailability.
Upvotes: 2
Reputation: 1280
Hi Adarsh you can check this plugin and this plugin out to get list of installed apps.
Upvotes: 1