CrossGeeks/FirebasePushNotificationPlugin

Default FirebaseApp is not initialized in this context...

Yahya0007 opened this issue · 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

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

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

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).