Exception:Google Maps SDK for iOS must be initialized via [GMSServices provideAPIKey


Posted

in

by

Tags:

Comments

One response to “Exception:Google Maps SDK for iOS must be initialized via [GMSServices provideAPIKey”

  1. Yaso Avatar
    Yaso

    ON AppDelegate file
    add

    import GoogleMaps

    then
    GMSServices.provideAPIKey(“Your api key”)

    It will look like
    import GoogleMaps

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

Leave a Reply

Your email address will not be published. Required fields are marked *