Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1.37 KB

File metadata and controls

51 lines (37 loc) · 1.37 KB

iOS Setup

📂 Open your AppDelegate.m or AppDelegate.swift:

📂 AppDelegate.m

#include "AppDelegate.h"
#include "GeneratedPluginRegistrant.h"

+@import FirebaseCore

@implementation AppDelegate

 - (BOOL)application:(UIApplication *)application
    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  [GeneratedPluginRegistrant registerWithRegistry:self];
  // Override point for customization after application launch.
+ [FIRApp configure];
  return [super application:application didFinishLaunchingWithOptions:launchOptions];
}

@end

📂 AppDelgate.swift:

import UIKit
import Flutter
+import FirebaseCore;

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

Google-Services-Info.plist

From your Firebase Console, copy your downloaded Google-Services-Info.plist file into your application: