google_maps_flutter_ios
2.18.7, released 5 weeks ago by flutter.dev
iOS implementation of the google_maps_flutter plugin.
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.
90Compare
Works with
Packages commonly used together with google_maps_flutter_ios: ones it builds on, ones built on it, and its own family.
- stream_transformgoogle_maps_flutter_ios depends on itExtension methods adding common stream transform operators
- google_fontsSame familyFlutter package to load Google Fonts at runtime or bundle them as assets
- google_sign_in_iosSame familyiOS and macOS implementation of Google Sign-In for Flutter
- google_sign_in_androidSame familyAndroid implementation of the google_sign_in plugin
- google_sign_inSame familyOfficial Flutter plugin for authenticating users and requesting OAuth scopes via Google Sign-In.
- google_maps_flutter_androidSame familyAndroid implementation of the google_maps_flutter plugin.
- google_maps_flutter_webSame familyWeb platform implementation of google_maps_flutter.
- google_identity_services_webSame familyDart JS-interop wrapper for Google Identity Services Web SDK