flutter firebase_messaging missing pluging exception #3398
Unanswered
chiragpandey15
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
-
E/flutter ( 4372): [ERROR:flutter/lib/ui/ui_dart_state.cc(171)] Unhandled Exception: MissingPluginEception(No implementation found for method getToken on channel plugins.flutter.io/firebase_messaging)
E/flutter ( 4372): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:157:7)
E/flutter ( 4372):
E/flutter ( 4372): #1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:332:12)
E/flutter ( 4372): #2 FirebaseMessaging.getToken (package:firebase_messaging/firebase_messaging.dart:138:27)
E/flutter ( 4372): #3 _LogInState.initState (package:driver/LogIn.dart:70:24)
E/flutter ( 4372): #4 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4702:58)
E/flutter ( 4372): #5 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4538:5)
E/flutter ( 4372): #6 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3508:14)
E/flutter ( 4372): #7 Element.updateChild (package:flutter/src/widgets/framework.dart:3266:18)
E/flutter ( 4372): #8 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5892:14)
E/flutter ( 4372): #9 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3508:14)
E/flutter ( 4372): #10 Element.updateChild (package:flutter/src/widgets/framework.dart:3266:18)
E/flutter ( 4372): #11 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4589:16)
E/flutter ( 4372): #12 Element.rebuild (package:flutter/src/widgets/framework.dart:4280:5)
E/flutter ( 4372): #13 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4543:5)
E/flutter ( 4372): #14 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4538:5)
E/flutter ( 4372): #15 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3508:14)
E/flutter ( 4372): #16 Element.updateChild (package:flutter/src/widgets/framework.dart:3266:18)
E/flutter ( 4372): #17 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5892:14)
E/flutter ( 4372): #18 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3508:14)
E/flutter ( 4372): #19 Element.updateChild (package:flutter/src/widgets/framework.dart:3266:18)
E/flutter ( 4372): #20 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5892:14)
E/flutter ( 4372): #21 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3508:14)
E/flutter ( 4372): #22 Element.updateChild (package:flutter/src/widgets/framework.dart:3266:18)
E/flutter ( 4372): #23 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4589:16)
E/flutter ( 4372): #24 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4737:11)
E/flutter ( 4372): #25 Element.rebuild (package:flutter/src/widgets/framework.dart:4280:5)
E/flutter ( 4372): #26 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4543:5)
E/flutter ( 4372): #27 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4728:11)
E/flutter ( 4372): #28 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4538:5)
E/flutter ( 4372): #29 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3508:14)
E/flutter ( 4372): #30 Element.updateChild (package:flutter/src/widgets/framework.dart:3266:18)
E/flutter ( 4372): #31 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5892:14)
E/flutter ( 4372): #32 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3508:14)
E/flutter ( 4372): #33 Element.updateChild (package:flutter/src/widgets/framework.dart:3266:18)
E/flutter ( 4372): #34 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5892:14)
E/flutter ( 4372): #35 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3508:14)
E/flutter ( 4372): #36 Element.updateChild (package:flutter/src/widgets/framework.dart:3266:18)
E/flutter ( 4372): #37 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4589:16)
E/flutter ( 4372): #38 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4737:11)
E/flutter ( 4372): #39 Element.rebuild (package:flutter/src/widgets/framework.dart:4280:5)
E/flutter ( 4372): #40 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4543:5)
E/flutter ( 4372): #41 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4728:11)
E/flutter ( 4372): #42 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4538:5)
E/flutter ( 4372): #43 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3508:14)
.
.
.
.
.
.
Though this happened with each and every plugin I have used in this project maybe due to a background service that I need and I have used method channel to get my work done but I couldn't find way out from this error. I have tried to implement firebase_messaging using method channel but I am getting some error like Attempt to invoke interface method 'void.io.flutter.plugin.BinaryMessenger.send on a null object reference. As I am noob, I don't know how to solve this. Can anyone please help me.
Beta Was this translation helpful? Give feedback.
All reactions