dpa99c / phonegap-launch-navigator

Phonegap/Cordova plugin which launches native route navigation apps for Android, iOS and Windows
369 stars 131 forks source link

Allowing disallowed apps #154

Closed joelbanzatto closed 7 years ago

joelbanzatto commented 7 years ago

Hello,

I am using launch-navigator and it is really nice, but I want to IGNORE Uber. But it is displayed everytime.

See my code snippet

function openNativeMap( __latlgn)
{

    var googleMaps  = launchnavigator.APP.GOOGLE_MAPS;
    var appleMaps   = launchnavigator.APP.APPLE_MAPS;
    var hereMaps    = launchnavigator.APP.HERE_MAPS;
    var wazeMaps    = launchnavigator.APP.WAZE;
    launchnavigator.navigate( __latlgn, {
        appSelection: {
            dialogHeaderText: 'Escolha o app para navegar',
            cancelButtonText: 'Cancelar',
            list: [
                googleMaps, appleMaps, hereMaps, wazeMaps
            ]
        }
    });

}

Thanks, guys!

dpa99c commented 7 years ago

Make sure you are using v4 of the plugin since the API has changed since v3.

Also see the AdvancedExample in the example repo which demonstates all of the plugin API features, including restriction of selectable apps. You can try building+running it to validate that this works.

joelbanzatto commented 7 years ago

Thanks for the quick reply!

Well, I am going to try the v4.

Thanks one more time.