ohh2ahh / AppAvailability

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

Not detecting any third party applications #58

Open iggirex opened 5 years ago

iggirex commented 5 years ago

Trying this plugin on iOS and it can detect all Apple-branded apps like Safari, Watch, iMovie, Facetime but is not detecting any third party apps like Twitter, Vimeo, Facebook.

Even the code example in the Readme is not working. I've installed Twitter on the phone, and the plugin says Twitter is not installed.

Running iOS SDK 12.2 built on Xcode 10.2 Cordova version 8.1.2 Cordova iOS platform version 4.5.5

iggirex commented 5 years ago

Fix - for iOS to detect 3rd party applications they have to be whitelisted in the info.plist file first. Explained pretty well in step 3 here https://kitefaster.com/2016/07/13/how-to-open-ios-app-with-custom-url/

Adding this to the README for this plugin could be helpful to future users.

eduboxgithub commented 4 years ago

Thanks @iggirex for this information. It´s working now.

josh-m-sharpe commented 4 years ago

Agree with @iggirex - Step 3 from that link solves the issue. Some notes about it should be included in the README.

Step 3 – Open one iOS app from another iOS app
Set up Whitelist
Use Xcode’s Project Navigator to open your app’s (the app that will be opening the app in step 1 above) Info.plist file.
Right click and select “Add Row”.
 Add the key: LSApplicationQueriesSchemes of type Array.LSApplicationQueriesSchemes
Press the + button to add a new Item.
Enter the custom URL Scheme you would like to open.
Repeat the above two steps for each additional app you would like to open.
ghost commented 4 years ago

Agree with @iggirex - Step 3 from that link solves the issue. Some notes about it should be included in the README.

Step 3 – Open one iOS app from another iOS app
Set up Whitelist
Use Xcode’s Project Navigator to open your app’s (the app that will be opening the app in step 1 above) Info.plist file.
Right click and select “Add Row”.
 Add the key: LSApplicationQueriesSchemes of type Array.LSApplicationQueriesSchemes
Press the + button to add a new Item.
Enter the custom URL Scheme you would like to open.
Repeat the above two steps for each additional app you would like to open.

Hi this is not working for me for IOS 13 :( or maybe i'm doing something wrong? Can you check if still works for you thanks