CATEGORIES
>>
Dart(2)
>>
Errors(5)
>>
Android(11)
>>
Errors(1)
>>
Errors(2)
>>
Windows 8(3)
>>
iPhone7(1)
>>
Errors(4)
>>
Html(1)
RECOMMENDED SITES
Flutter ios FirebaseApp.configure() doesn't start app
Error Desc
Desc1: Flutter ios FirebaseApp.configure() doesn't start app.
Desc2: Exception NSException * "Default app has already been configured." 0x0000600001de9a70
Desc3: IOS FcmDartService#start on channel plugins.flutter.io/firebase_messaging)
STEP 1 - GoogleService-Info.plist
1- Download "GoogleService-Info.plist"
2- Open Xcode
3- Click Runner (Runner.xcodeproj)
4- Drag "GoogleService-Info.plist" to under Info.plist
STEP 2 - AppDelegate.swift
OLD CODE - AppDelegate.swift
NEW CODE - AppDelegate.swift
Desc1: Flutter ios FirebaseApp.configure() doesn't start app.
Desc2: Exception NSException * "Default app has already been configured." 0x0000600001de9a70
Desc3: IOS FcmDartService#start on channel plugins.flutter.io/firebase_messaging)
STEP 1 - GoogleService-Info.plist
1- Download "GoogleService-Info.plist"
2- Open Xcode
3- Click Runner (Runner.xcodeproj)
4- Drag "GoogleService-Info.plist" to under Info.plist
STEP 2 - AppDelegate.swift
OLD CODE - AppDelegate.swift
import UIKit
import Flutter
import Firebase
@UIApplicationMain
@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)
}
}
NEW CODE - AppDelegate.swift
import UIKit
import Flutter
import Firebase
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
override init() {
super.init()
FirebaseApp.configure()
}
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}
Author: Engin ATALAY
Date: 24.01.2021 23:20:21
View Count: 2228
COMMENTS
No comments yet. Be the first to comment who you are.