Prompt for Navigation app

Anonymous
2021-04-09T21:21:27.263+00:00

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

Developer technologies | .NET | Xamarin
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JarvanZhang 23,971 Reputation points
    2021-04-12T06:47:29.523+00:00

    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.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.