question

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

Get List of Installed Maps apps

Hi,

How can I get list of installed Maps apps using Xamarin Forms?



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

Hi, JassimAlRahma. We cannot get a list of map apps directly. It's supported to use uri scheme to launch the maps application on Android, which may prompt the user to select from an existing app.

However, iOS won't. It always uses the default map application. And we can't detect what kinds of applications have been installed on the device, so we can't list all the supported applications. You could use Essentials.Launcher.CanOpenAsync command to check whether the certain map application has installed or not.

· 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.

then how some apps will prompt you to select which maps app to select for navigation and it will list the installed apps on your mobile?

0 Votes 0 ·

In Xamarin.Forms, you could just use Essential.Map api to prompt the user to select from an existing app in Android.

https://docs.microsoft.com/en-us/xamarin/essentials/maps?context=xamarin%2Fandroid&tabs=android

0 Votes 0 ·