Skip to content
pubscout

google_maps_flutter_ios

2.18.7, released 5 weeks ago by flutter.dev

iOS implementation of the google_maps_flutter plugin.

WASM-ready
$ flutter pub add google_maps_flutter_ios
Source repository

What it does

Provides the default iOS platform implementation for the google_maps_flutter plugin, rendering Google Maps natively on iOS devices. It uses Google Maps SDK 8.4, 9.x, or 10.x depending on the minimum deployment target.

AI-written summary of version 2.18.7, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are using google_maps_flutter and need the default iOS implementation.
  • You are maintaining an existing project that targets iOS versions below 15 or 16 and uses CocoaPods.

Skip it when

  • You want to use Swift Package Manager, as this package does not support it.
  • You need ongoing feature updates, because this package is deprecated for new features.
  • You are building for iOS 15+ or 16+ and can use the updated SDK-specific implementation packages.

Strengths

  • Maintains compatibility with previous versions of the google_maps_flutter plugin via endorsed federated setup.
  • Supports a range of Google Maps SDK versions (8.4, 9.x, 10.x).

Weaknesses

  • Will not receive new feature updates going forward.
  • Does not support Swift Package Manager.
  • Lacks support for certain features like GoogleMap.onPointOfInterestTap.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
3

Specify your API key in the application delegate ios/Runner/AppDelegate.swift using GMSServices.provideAPIKey.

import UIKit
import Flutter
import GoogleMaps

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

Alternatives

Packages that do the same job and could replace google_maps_flutter_ios.

  • flutter_map

    If you want a customizable, open-source map solution using Leaflet without native Google Maps dependency constraints.

Works with

Packages commonly used together with google_maps_flutter_ios: ones it builds on, ones built on it, and its own family.