question

JassimAlRahma-9056 avatar image
0 Votes"
JassimAlRahma-9056 asked JarvanZhang-MSFT commented

Prompt for Navigation app

Hi,

I am using below code to open map navigation:

 async void ButtonNavigate_Clicked(System.Object sender, System.EventArgs e)
 {
     var location = new Location(latitude, longitude);
     var options = new MapLaunchOptions { NavigationMode = NavigationMode.Driving, Name = LabelPlaceName.Text };
    
     await Map.OpenAsync(location, options);
 }

How can show list of installed navigation apps so user will select which one to use for the navigation?

I have seen that kind of prompt in many apps.


Thanks,
Jassim

dotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JarvanZhang-MSFT avatar image
0 Votes"
JarvanZhang-MSFT answered JarvanZhang-MSFT commented

Hello,​

Welcome to our Microsoft Q&A platform!

How can show list of installed navigation apps so user will select which one to use for the navigation

It supports selecting a map application to display the location. When there is only one map application installed on the device, it will navigate directly to that application. If there are multiple related applications, it will display a pop-up window for you to choose to perform map navigation. You could download the application to the device to check that.
Best Regards,

Jarvan Zhang



If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

it does not support it.

I have Appl Maps and Google Maps on my iPhone and it's just going to the Apple Maps.

0 Votes 0 ·

I have Appl Maps and Google Maps on my iPhone and it's just going to the Apple Maps.

After testing on both Android and iOS, it turns out that it'll navigate to the the Apple Maps directly on iOS. On Android, it'll list the applications for you to choose one. You could report a feature request to product team on github for this requirement.



1 Vote 1 ·