dpa99c / phonegap-launch-navigator

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

apple Maps audio and other options are not working #181

Closed venkatan91 closed 6 years ago

dpa99c commented 6 years ago

This is not sufficient information to open an issue.

If you are reporting a bug relating to existing plugin functionality, please give:

If you are requesting a new feature/functionality, please give a detailed outline of the proposed addition including links to relevant native API documentation where relevant.

Failure to give the above details will result in the issue being deemed invalid and it will be closed.

venkatan91 commented 6 years ago

apple native maps img_4134

launching the apple maps after using the plugin img_4132 I read the documentation to change the default mode URI_SCHEME to MAPKIT .I changed the mode but nothing worked.

startExternalMap() {

    let options: LaunchNavigatorOptions = {
          start: [this.start.latitude, this.start.longitude],

          launchModeAppleMaps: "mapkit"

        };

        this.launchNavigator.navigate([this.selectedCompany.latitude, this.selectedCompany.longitude], options)
            .then(
                success => alert('Launched navigator'),
                error => alert('Error launching navigator: ' + error)
        );
}

Thanks in advance !!

venkatan91 commented 6 years ago

versions uk.co.workingedge.phonegap.plugin.launchnavigator 4.1.3 ionic-native/launch-navigator 4.4.2 ios 11.2.5

venkatan91 commented 6 years ago

Thanks

dpa99c commented 6 years ago

Upon investigation, this is simply down to how Apple Maps handles launch intents from the URI or MapKit call used to launch it, and as such this plugin has no control over how the Apple Maps app chooses to handle that intent.

In a nutshell: there's nothing I can do to change the behaviour of Apple Maps.

The launchModeAppleMaps parameter toggles between using the URI scheme to launch Apple Maps vs the native MapKit class.

The URI scheme is set as described in the Apple documentation, as is the MapKit class set according to that documentation.

There are no documented options for either launch method that would cause Apple Maps to launch differently and achieve different UI features as shown in your screenshots.