Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter Firebase Auth

I'm developing flutter app and I added firebase auth to project. And it's running fine, but when app loads up console says this. Is this normal behavior? Thank you!

    5.4.1 - [Firebase/Core][I-COR000003]
 The default Firebase app has not yet been configured.
 Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift)
 to your application initialization.
like image 477
Daibaku Avatar asked Nov 22 '25 21:11

Daibaku


1 Answers

Check the configuration of IOS in flutter. Then create a Podfile, inside that file add the following libraries to be able to use Firebase auth:

pod 'Firebase/Core'
pod 'Firebase/Auth'

Then go to this path flutterApp\ios\Runner\AppDelegate.m and import and configure firebase:

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

@import Firebase; // new

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

//configure firebase
[FIRApp configure]; // new

[GeneratedPluginRegistrant registerWithRegistry:self];
// Override point for customization after application launch.
return [super application:application didFinishLaunchingWithOptions:launchOptions];

  }

@end
like image 117
Peter Haddad Avatar answered Nov 25 '25 10:11

Peter Haddad



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!