.NET MAUI › Maps & Location

How do you configure platform requirements for maps (API keys, permissions)?

Intermediate

Answer

Apple Maps needs no key but requires location usage strings in Info.plist; Google Maps on Android requires a Maps SDK API key in the manifest and location permissions. Declare these per platform. Request runtime location permission before showing the user's position.
<!-- Platforms/Android/AndroidManifest.xml -->
<meta-data android:name="com.google.android.geo.API_KEY"
           android:value="YOUR_KEY" />
Real-world example The Android build shows Google Maps after the team adds the Maps API key and location permissions to the manifest.

Common follow-ups: Does Apple Maps need a key? | What permission shows the user's location?