dpa99c / phonegap-launch-navigator

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

When I call the phonegap-launch-navigator service; This takes a long time to open the list of options to open the external map on Android. #210

Closed dawerdrew closed 5 years ago

dawerdrew commented 5 years ago

I'm submitting a ... (check one with "x"):

Bug report

Current behavior:

I click on the button to open the navigation with coordinates to open an external map. In iOS works immediately without problems. The problem is in Android. In Android I have installed google maps and Waze, When I click on the button to open the external map, the plugin takes a long time to display the list of options to open the external map, after opening the external map, I return to the app and I click on the button again and the plugin takes more time than the first time to display the list of options to open the external map.

Expected behavior:

I hope that in Android when I click on the external map button, the list of map applications is immediately displayed as it is in the case of iOS.

Steps to reproduce:

Environment information

Runtime issue

Android build issue:

Related code:

    abrirMapa(myLocation){
      let options: LaunchNavigatorOptions = {
        start: myLocation
        // app: this.launchnavigator.APP.WAZE
      };
      var destination = this.lat + ',' + this.lng;
        console.log('abriendo mapas');
      this.launchNavigator.navigate(destination, options)
      .then(success => {
        console.log('Launched ')
      },error => {
        console.log('Error launching navigator', error);
      }
      );
    }

Other information:

dpa99c commented 5 years ago

I've regression tested the Ionic 3 Example app using cordova-android@7.1.4 and running on a Nexus 6P running Android 8.1. As you can see from this screen capture, the plugin responds almost immediately to display a list of available navigation apps on the device.

Please try building and running an app from the example project to eliminate the possibility that some other element in your app is responsible for making the plugin slow to respond.

dpa99c commented 5 years ago

Closed due to no response