dpa99c / phonegap-launch-navigator

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

appSelectionList not working #94

Closed jvjvjv closed 8 years ago

jvjvjv commented 8 years ago

on iOS10 -- I've not tested this on iOS 9 as I accidentally updated all of my devices -- but appSelectionList won't let me display only certain navigator apps. It still displays ALL apps on my phone.

Example:

  launchnavigator.navigate('430 Market Street, Philadelphia, PA',{
    successCallback:function(){
      APP.analytics.sendEvent('Trip','Start Navigation','Success',1);
    },
    errorCallback:function(err){
      if (err != 'cancelled') {
        APP.alert("Unable to launch app. Reason:\n\n" + err);
        APP.analytics.sendEvent('Trip','Start Navigation','Failed - ' + err,0);
      }
    },
    appSelectionDialogHeader:"Select your navigation app",
    appSelectionCancelButton:"Go back",
    appSelectionList: [
      launchnavigator.APP.APPLE_MAPS,
      launchnavigator.APP.GOOGLE_MAPS,
      launchnavigator.APP.WAZE
    ]
  });

My app has these three AND Uber! And Uber shows up on the list.

jvjvjv commented 8 years ago

Hold on. I seem to be having trouble with phonegap plugin add uk.co.workingedge.phonegap.plugin.launchnavigator I'll reopen if necessary.

jvjvjv commented 8 years ago

Okay. I had to

phonegap plugin add https://github.com/dpa99c/phonegap-launch-navigator.git

to install the app. Don't know why, but in case anyone else is having issue with running phonegap plugin add uk.co.workingedge.phonegap.plugin.launchnavigator to install the latest version, you can directly reference the Github repository.