ohh2ahh / AppAvailability

This Cordova / PhoneGap plugin allows you to check if an app is installed.
229 stars 117 forks source link

Support scheme query on Android too #36

Closed pke closed 7 years ago

pke commented 7 years ago

I'd like to add support to query the system for apps that handle a specific scheme for Android just like its possible on iOS. This can also be done via Package Manager and an Intent query.

const PackageManager manager = context.getPackageManager();
const bool appAvailable = manager.queryIntentActivities(intent, 0).size() > 0;

Would u accept a PR?

ohh2ahh commented 7 years ago

Hi @pke Thanks for your request. I would like to keep the plugin as simple as possible and therefore I don't think this is necessary. Thanks again!