AppAvailability Plugin Sample

AppAvailability Plugin Sample (ODC)

Stable version 0.1.1 (Compatible with ODC)
Uploaded on 06 March 2023 by valantic LCS
AppAvailability Plugin Sample

AppAvailability Plugin Sample (ODC)

Documentation
0.1.1

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>