Skip to content

🐛 [firebase_core] PlatformException(ExecutionException, Nonnull field "messagingSenderId" is null #10306

@Sai7xp

Description

@Sai7xp

Bug report

Describe the bug
Using Firebase Messaging and Firestore for Flutter Module and after bundling module with kotlin android app this issue is happening.
Firebase is failing to Initialize. Is there any way to share the Firebase Instance created in kotlin app to Firebase Module ?

Steps to reproduce

Steps to reproduce the behavior:

  1. Integrate Firebase in Flutter Module.
  2. Bundle the Flutter Module with Existing Native Android App
  3. Launch the bundled Application and this issue is happening.
Failed to Initialize Firebase
2023-01-20 12:25:11.596 15460-15711 flutter                 com.nitara.farmer.qa                 I  PlatformException(ExecutionException, java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Nonnull field "messagingSenderId" is null., Cause: java.lang.IllegalStateException: Nonnull field "messagingSenderId" is null., Stacktrace: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Nonnull field "messagingSenderId" is null.
                                                                                                    	at com.google.android.gms.tasks.Tasks.zza(com.google.android.gms:play-services-tasks@@18.0.2:5)
                                                                                                    	at com.google.android.gms.tasks.Tasks.await(com.google.android.gms:play-services-tasks@@18.0.2:8)
                                                                                                    	at io.flutter.plugins.firebase.core.FlutterFirebaseCorePlugin.lambda$initializeCore$3$io-flutter-plugins-firebase-core-FlutterFirebaseCorePlugin(FlutterFirebaseCorePlugin.java:174)
                                                                                                    	at io.flutter.plugins.firebase.core.FlutterFirebaseCorePlugin$$ExternalSyntheticLambda1.run(Unknown Source:4)
                                                                                                    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
                                                                                                    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:63

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions