FirebasePushNotificationPlugin icon indicating copy to clipboard operation
FirebasePushNotificationPlugin copied to clipboard

Default FirebaseApp is not initialized in this context...

Open Yahya0007 opened this issue 2 years ago • 3 comments

Hi

I have downloaded and run the sample on an Android device and I get the attached error.

What am I missing?

I am using my own google-services.json which works in a second project.

Thanks

Regards

Plugin-Firebase

Yahya0007 avatar Apr 25 '23 00:04 Yahya0007

I am same getting issue please inform work around or any fixes

jitendrajadav avatar Jun 05 '23 07:06 jitendrajadav

I encountered this issue when attempting to run the sample project and a newly created project. I have tried multiple solutions and so far nothing has worked.

Good references: Play services solution A lot of random fixes Microsoft's solution

jerebear12 avatar Jun 09 '23 15:06 jerebear12

Update: I resolved this issue by installing the Xamarin.GooglePlayServices.Basement NuGet package and setting my google-services.json file's build action to GoogleServicesJson. I also installed Xamarin.GooglePlayServices.Base. I am not calling FirebaseApp.InitializeApp(this).

jerebear12 avatar Jun 09 '23 16:06 jerebear12