mo-ah-dawood / fcm_config

10 stars 12 forks source link

Cannot show notification #32

Closed dougn-dotcom closed 1 year ago

dougn-dotcom commented 1 year ago

E/MethodChannel#dexterous.com/flutter/local_notifications(14214): java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Intent android.content.Intent.setAction(java.lang.String)' on a null object reference E/MethodChannel#dexterous.com/flutter/local_notifications(14214): at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.createNotification(FlutterLocalNotificationsPlugin.java:217) E/MethodChannel#dexterous.com/flutter/local_notifications(14214): at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.showNotification(FlutterLocalNotificationsPlugin.java:1146) E/MethodChannel#dexterous.com/flutter/local_notifications(14214): at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.show(FlutterLocalNotificationsPlugin.java:1462) E/MethodChannel#dexterous.com/flutter/local_notifications(14214): at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.onMethodCall(FlutterLocalNotificationsPlugin.java:1299) E/MethodChannel#dexterous.com/flutter/local_notifications(14214): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:258) E/MethodChannel#dexterous.com/flutter/local_notifications(14214): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295) E/MethodChannel#dexterous.com/flutter/local_notifications(14214): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:322) E/MethodChannel#dexterous.com/flutter/local_notifications(14214): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12) E/MethodChannel#dexterous.com/flutter/local_notifications(14214): at android.os.Handler.handleCallback(Handler.java:883) E/MethodChannel#dexterous.com/flutter/local_notifications(14214): at android.os.Handler.dispatchMessage(Handler.java:100) E/MethodChannel#dexterous.com/flutter/local_notifications(14214): at android.os.Looper.loop(Looper.java:214) E/MethodChannel#dexterous.com/flutter/local_notifications(14214): at android.app.ActivityThread.main(ActivityThread.java:7386) E/MethodChannel#dexterous.com/flutter/local_notifications(14214): at java.lang.reflect.Method.invoke(Native Method) E/MethodChannel#dexterous.com/flutter/local_notifications(14214): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) E/MethodChannel#dexterous.com/flutter/local_notifications(14214): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:980) E/flutter (14214): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(error, Attempt to invoke virtual method 'android.content.Intent android.content.Intent.setAction(java.lang.String)' on a null object reference, null, java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Intent android.content.Intent.setAction(java.lang.String)' on a null object reference