Open wizawuza opened 2 years ago
That's easy
Sharing how it looks for me, the placement of configure is important because if you place it after GeneratedPluginRegsitrant.register(with: self)
, it would cause a crash.
import Flutter
import UIKit
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)
}
}
Is your feature request related to a problem? Please describe. There are currently instructions to set up in iOS at https://github.com/transistorsoft/flutter_background_geolocation_firebase/blob/master/help/INSTALL-IOS.md
Describe the solution you'd like Please add the specific instructions if we have an AppDelegate.swift file
Thank you.