Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default FirebaseApp is not initialized in this process com.plugin.firebaseauth.sample. #6

Open
SagarPanwala opened this issue Jun 8, 2019 · 4 comments

Comments

@SagarPanwala
Copy link

No description provided.

@enisn
Copy link

enisn commented May 23, 2020

@SagarPanwala
Did you add fingerprint of your .keystore file to firebase?

@efimomax
Copy link

Call

Plugin.CurrentActivity.CrossCurrentActivity.Current.Init(this, bundle);
and
FirebaseApp.InitializeApp(Application.Context);
in MainActivity.OnCreate

Explicitly call FirebaseApp.InitializeApp(Application.Context); just before the LoadApplication(..)

@actopozipc
Copy link

actopozipc commented Aug 25, 2020

Edit: Make sure to set the build action of your google-services.json to GoogleServicesJson. This solved the exception for me.

Same problem for me.


  protected override void OnCreate(Bundle bundle)
        {
            
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource = Resource.Layout.Toolbar;
          
            base.OnCreate(bundle);
           
          
            global::Xamarin.Forms.Forms.Init(this, bundle);
            Xamarin.Essentials.Platform.Init(this, bundle);
            Plugin.CurrentActivity.CrossCurrentActivity.Current.Init(this, bundle);
            FirebaseApp.InitializeApp(Application.Context);
            LoadApplication(new App());
        }

@timarsha
Copy link

I had the same problem, I added nuget Xamarin.Firebase.Auth for Android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants