monodroid-samples icon indicating copy to clipboard operation
monodroid-samples copied to clipboard

Xamarin.android Default FirebaseApp is not initialized in this process

Open Phoenix-GH opened this issue 7 years ago • 3 comments

I tried to run this example with my google-services.json and I'm facing the issue.

Xamarin.android Default FirebaseApp is not initialized in this process

Can you please try to resolve the issue?

Phoenix-GH avatar Sep 26 '17 02:09 Phoenix-GH

@phoenix214 We have a potential fix for this issue. For use Firebase service, you must to init it before. To do this, try to add the following line in the last part of your OnCreate method:

https://gist.github.com/gonzalonm/7a9f96b36db70160c4aa52c35d3cfe2e#file-firebaseapp-cs-L25

This should fix the problem. If that is the case, please let us know and we can update this sample.

Thanks

gonzalonm avatar Oct 11 '17 14:10 gonzalonm

Hitting the same issue. After removing the obj folder manually and calling Firebase.FirebaseApp.InitializeApp(this); the problem solved!

jacano avatar Nov 21 '17 12:11 jacano

Nice! @phoenix214 Please, could you test it on your end and notify us if everything is ok? Thanks

gonzalonm avatar Nov 27 '17 12:11 gonzalonm