iosfirebasefluttervisual-studio-code

My Flutter/Firebase app is showing no app has been configured yet


I am making an app in Flutter/Firebase and I am experiencing the following error on my visual studio code terminal:

Xcode build done.                                           522.2s
6.26.0 - [Firebase/Core][I-COR000005] No app has been configured yet.
6.26.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications 
proxy enabled, will swizzle remote notification receiver handlers. If you'd 
prefer to manually integrate Firebase Messaging, add 
"FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow 
the instructions at:
https://firebase.google.com/docs/cloud- 
messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure proper integration.
Waiting for iPhone 11 to report its views...                         9ms
Syncing files to device iPhone 11...                               610ms

Solution

  • I solved the issue. If you are using swift in your AppDelegate.swift, make sure you've added the following in that order:

    import Firebase
    
    
    FirebaseApp.configure() //add this before the code below
    GeneratedPluginRegistrant.register(with: self)
    

    If you're using flutter with objective-c, add the following to your appdelgate.m file:-

    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [FIRApp configure]; //add this right after the above