inside the Flutter application and it works, but I don't receive the notification when the application is closed.
An important scenario is that when I run the application in --release mode and then close the application and send a notification from the Firebase side, the notification does not appear, but the following message is displayed in the terminal:
I/flutter (21454): FlutterFire Messaging: An error occurred in your background messaging handler:
I/flutter (21454): PlatformException(java.lang.Exception: Failed to load FirebaseOptions from resource. Check that you have defined values.xml correctly., Exception, Cause: null, Stacktrace: java.lang.Exception: Failed to load FirebaseOptions from resource. Check that you have defined values.xml correctly.
I/flutter (21454): at io.flutter.plugins.firebase.core.i.v(Unknown Source:12)
I/flutter (21454): at io.flutter.plugins.firebase.core.i.l(Unknown Source:0)
I/flutter (21454): at io.flutter.plugins.firebase.core.b.run(Unknown Source:4)
I/flutter (21454): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
I/flutter (21454): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
I/flutter (21454): at java.lang.Thread.run(Thread.java:1012)
I/flutter (21454): , null)
Can anyone help me? Thankful
this https://stackoverflow.com/a/78215218/9828025 probably
Обсуждают сегодня