Xgenious/ docs

iOS Configuration

Steps

  1. In the Google Cloud Console, enable Maps SDK for iOS and Geocoding API for the same project used for Android.

  2. In ios/Runner/AppDelegate.swift (or AppDelegate.m if Objective-C), ensure Google Maps is initialized with your iOS API key:

import GoogleMaps

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
  override func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {
    GMSServices.provideAPIKey("YOUR_IOS_GOOGLE_MAPS_API_KEY")
    GeneratedPluginRegistrant.register(with: self)
    return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  }
}
Note

Some templates use AppDelegate.m — use GMSServices provideAPIKey: equivalently.

  1. Update mapApiKey in lib/customization.dart if you use a single key for both platforms, otherwise keep platform-specific keys as above.

Verify

Build via Xcode and open a map view. If the map is blank, check the console for ClientParametersRequest failed — usually a bundle ID mismatch with the Cloud Console credential restriction.

Still stuck?
Our support team is ready to help you get set up.
Get support