Unhandled Exception: PlatformException(null-error, Host platform returned null value for non-null return value., null, null) #12221
Unanswered
Priyanshu-Agrawal321
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I initialise firebase im main function and run code we get an error:
Unhandled Exception: PlatformException(null-error, Host platform returned null value for non-null return value., null, null)
E/flutter (20828): #0 FirebaseCoreHostApi.optionsFromResource (package:firebase_core_platform_interface/src/pigeon/messages.pigeon.dart:248:7)
E/flutter (20828):
E/flutter (20828): #1 MethodChannelFirebase.initializeApp (package:firebase_core_platform_interface/src/method_channel/method_channel_firebase.dart:89:25)
E/flutter (20828):
E/flutter (20828): #2 Firebase.initializeApp (package:firebase_core/src/firebase.dart:43:31)
E/flutter (20828):
E/flutter (20828): #3 main (package:firebase_notification/main.dart:14:3)
E/flutter (20828):
E/flutter (20828):
### I have added plugin:
firebase_messaging: ^14.7.10
firebase_core: ^2.24.2
flutter_local_notifications: ^16.3.2
app_settings: ^5.1.1
Beta Was this translation helpful? Give feedback.
All reactions