Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

any ideas on how to solve this issue......????

like image 877
Sai Prashanth Avatar asked Sep 22 '20 17:09

Sai Prashanth


2 Answers

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

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
like image 186
Sai Prashanth Avatar answered Sep 22 '22 17:09

Sai Prashanth


with adding FirebaseApp.configure(), do not forget to import Firebase.

AppDelegate.swift file should start like this:

import UIKit
import Firebase
like image 43
eldar Avatar answered Sep 21 '22 17:09

eldar