xamarin-docs
xamarin-docs copied to clipboard
Allow the application to open Google Maps in Android 11
Hello,
Since Android 11, when the user clicks on the "Google Maps" button that appears at the bottom of the map when selecting a Pin, the following toast is displayed: "Google maps is not installed or is disabled"
In order to allow the application to open Google Maps, the following code must be added to AndroidManifest.xml
:
<manifest package="com.your.package">
<queries>
<package android:name="com.google.android.apps.maps" />
</queries>
...
</manifest>
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 2a251251-3037-b49f-de79-f820b469321d
- Version Independent ID: 4af74db2-b248-3a02-bf38-0b76ede42ef6
- Content: Xamarin.Forms Map Initialization and Configuration - Xamarin
- Content Source: docs/xamarin-forms/user-interface/map/setup.md
- Product: xamarin
- Technology: xamarin-forms
- GitHub Login: @davidbritch
- Microsoft Alias: dabritch