ohh2ahh / AppAvailability

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

Not working on iOS (phonegap build cli-6.5.0) #48

Closed Marix1 closed 6 years ago

Marix1 commented 6 years ago

Hello i try that on ios and android.

On android its working

    $.each( app_list, function( i, scheme ) {
        appAvailability.check(
            scheme, 
            function() { 
                console.log( scheme + ' is available');
            }, 
            function() { 
                console.log( scheme + ' is not available');
            }
        );

but on ios (10) only false back -> not working came back twitter twitter: twitter://

But i can open the apps with onClick="window.open('twitter://*'', '_system');

situee commented 6 years ago

Since iOS 9, you have to add the scheme "twitter" to LSApplicationQueriesSchemes in info.plist.

Marix1 commented 6 years ago

Very thanks.

i added to config.xml:

<config-file parent="LSApplicationQueriesSchemes" platform="ios" target="*-Info.plist">
    <array>
        <string>twitter</string>
        <string>fb</string>
        <string>telegram</string>   
        <string>whatsapp</string>
    </array>
</config-file>   

It would be good to add that to the doc

  1. PhoneGap Build