thomasgalliker / Plugin.FirebasePushNotifications

Receive and handle firebase push notifications in .NET MAUI apps
31 stars 3 forks source link

[Bug] Exception in Firebase initialization #33

Open fbua opened 3 weeks ago

fbua commented 3 weeks ago

Description

Launching the app I got the following exception: Java.Lang.IllegalStateException: 'Default FirebaseApp is not initialized in this process it.fbe.TestApp. Make sure to call FirebaseApp.initializeApp(Context) first.'

Steps to Reproduce

  1. Create a new MAUI app
  2. Add the nuget package version 2.2.61-pre
  3. Edit the project file adding the google-services.json
  4. Add the plug-in inizialization UseFirebasePushNotifications with AutoInitEnabled = true

Expected Behavior

The plug-in will be initialized

Actual Behavior

An exception occurs

thomasgalliker commented 3 weeks ago

Thanks for taking the time to report this. I gonna look into it.