You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method show on channel dexterous.com/flutter/local_notifications)
#477
Closed
curlyeto opened this issue
Feb 11, 2020
· 5 comments
[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method show on channel dexterous.com/flutter/local_notifications)
İssue: [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method show on channel dexterous.com/flutter/local_notifications)
**Firstly **
I want to backgroundmessagenotofication with local notification. Secondly https://pub.dev/packages/firebase_messaging STEP -> Optionally handle background messages 1.step İS ERROR Thirdly
error solution find -> https://stackoverflow.com/a/59490722 and I applied my application Finally
Then I wrote the code above.Run application and send notice postman onmessage function is run and I saw the notice.
But I closed application and send notice postman code.Program entered myBackgroundMessageHandler function but didn't run this line -> NotificationHandler.showNotification(message);
This is something to ask on the firebase_messaging repo as I don't know what is required for background messaging to use other plugins and how it works. Looks like you already did this as well. In the past this requires developers to do more setup in their application. Might be the same in this case. With my own experience in background execution, I had to move declaring and creating the FlutterLocalNotificationsPlugin object inside the static method and call initialize etc after that. You might want to see if that helps you here as well.
Closing this since this relates to another plugin's functionality and not an issue with this plugin (also noted by another member of the community that had the same issue here)
[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method show on channel dexterous.com/flutter/local_notifications)
I/flutter (23518): Arka plandan gelen mesaj {image-url: your_image_url, title: Your title, message: Your message}
E/flutter (23518): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method show on channel dexterous.com/flutter/local_notifications)
E/flutter (23518): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:154:7)
E/flutter (23518):
E/flutter (23518): #1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:329:12)
E/flutter (23518): #2 AndroidFlutterLocalNotificationsPlugin.show (package:flutter_local_notifications/src/platform_flutter_local_notifications.dart:135:21)
E/flutter (23518): #3 FlutterLocalNotificationsPlugin.show (package:flutter_local_notifications/src/flutter_local_notifications_plugin.dart:93:13)
E/flutter (23518): #4 NotificationHandler.showNotification (package:newflutter/handler/notificationhandler.dart:79:43)
E/flutter (23518): #5 myBackgroundMessageHandler (package:newflutter/handler/notificationhandler.dart:18:25)
E/flutter (23518): #6 _fcmSetupBackgroundChannel. (package:firebase_messaging/firebase_messaging.dart:38:30)
E/flutter (23518): #7 MethodChannel._handleAsMethodCall (package:flutter/src/services/platform_channel.dart:409:55)
E/flutter (23518): #8 MethodChannel.setMethodCallHandler. (package:flutter/src/services/platform_channel.dart:377:54)
E/flutter (23518): #9 _DefaultBinaryMessenger.handlePlatformMessage (package:flutter/src/services/binding.dart:200:33)
E/flutter (23518): #10 _invoke3. (dart:ui/hooks.dart:303:15)
E/flutter (23518): #11 _rootRun (dart:async/zone.dart:1126:13)
E/flutter (23518): #12 _CustomZone.run (dart:async/zone.dart:1023:19)
E/flutter (23518): #13 _CustomZone.runGuarded (dart:async/zone.dart:925:7)
E/flutter (23518): #14 _invoke3 (dart:ui/hooks.dart:302:10)
E/flutter (23518): #15 _dispatchPlatformMessage (dart:ui/hooks.dart:162:5)
CODE
The text was updated successfully, but these errors were encountered: