1. Home
  2. Docs
  3. Threme Setup
  4. Firebase Installation
  5. Configure Firebase for iOS

Configure Firebase for iOS

Install CocoaPods Dependencies: Navigate to the ios directory and run: pod install

Update AppDelegate.swift: Open ios/Runner/AppDelegate.swift and configure Firebase:

import UIKit
import Flutter
import Firebase
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
 override func application(
 _ application: UIApplication,
 didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
 FirebaseApp.configure()
 GeneratedPluginRegistrant.register(with: self)
 return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}