2018-01-05
1.0.0
Miguel 'Kelter' Antunes
All
All
Plug-ins
[Overview]
Plugin allows you to check if an app is installed. github: https://github.com/ohh2ahh/AppAvailability
[Detail]
Description
This plugin allows you to check if an app is installed on the user's device. It requires an URI Scheme (e.g. twitter://) on iOS or a Package Name (e.g com.twitter.android) on Android.
Ready for the Command-line Interface of Cordova / PhoneGap 3.0 and later
Works with PhoneGap Build
Supported Platforms
iOS
Android
Important: iOS 9 and iOS 10 URL Scheme Whitelist
Apple changed the canOpenURL method on iOS 9. Apps which are checking for URL Schemes have to declare these Schemes as it is submitted to Apple. The article Quick Take on iOS 9 URL Scheme Changes expains the changes in detail.
Add URL Schemes to the Whitelist
Simply open your app's .plist (usually platforms/ios/<appname>/<appname>-Info.plist) with an editor and add the following code with your needed Schemes.
<key>LSApplicationQueriesSchemes</key>
<array>
<string>twitter</string>
<string>whatsapp</string>
</array>
Note:
To edit the your app's .plist file you should use the Edit Plist File Plugin.