Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlutterLocalNotificationsPlugin.java – line 223 #1485

Closed
thize opened this issue Feb 14, 2022 · 6 comments · Fixed by #1487
Closed

FlutterLocalNotificationsPlugin.java – line 223 #1485

thize opened this issue Feb 14, 2022 · 6 comments · Fixed by #1487

Comments

@thize
Copy link

thize commented Feb 14, 2022

Describe the bug
I have been receiving some crash reports through Crashlytics over the Weekend. Multiple users with Android devices encountered failures caused by the FlutterLocalNotificationsPlugin.java. This the Stack trace Crashlytics provided:

Bug

Fatal Exception: java.lang.RuntimeException: Unable to start receiver com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference
       at android.app.ActivityThread.handleReceiver(ActivityThread.java:4495)
       at android.app.ActivityThread.access$1500(ActivityThread.java:301)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2177)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:246)
       at android.app.ActivityThread.main(ActivityThread.java:8633)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)

Cause by:

Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference
       at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.createNotification(FlutterLocalNotificationsPlugin.java:223)
       at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.showNotification(FlutterLocalNotificationsPlugin.java:1007)
       at com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver.onReceive(ScheduledNotificationReceiver.java:41)
       at android.app.ActivityThread.handleReceiver(ActivityThread.java:4486)
       at android.app.ActivityThread.access$1500(ActivityThread.java:301)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2177)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:246)
       at android.app.ActivityThread.main(ActivityThread.java:8633)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)

Package Version : ^9.3.1

Reproduce the problem
I Called Zoned Schedule with AndroidDetails, using tags:
enableLights: true,
ledColor: true,
playSound: true,
setAsGroupSummary: true,
visibility: NotificationVisibility.public,
showProgress: true,
progress: progress,
enableVibration: true,
maxProgress: 100,
priority: Priority.max,
importance: Importance.max,
fullScreenIntent: true,
tag: tag,

@MaikuB
Copy link
Owner

MaikuB commented Feb 15, 2022

Can you provide a link to a repository with a minimal app that can reproduce the issue?

@MaikuB
Copy link
Owner

MaikuB commented Feb 15, 2022

Actually I've figured out the issue now. Fix incoming

@MaikuB
Copy link
Owner

MaikuB commented Feb 15, 2022

Released 9.3.2 that should fix this issue. Thanks for reporting

@MaikuB MaikuB closed this as completed Feb 15, 2022
@alexursul
Copy link

alexursul commented Feb 15, 2022

@MaikuB Hi! The same issue in version ^10.0.0-dev.7. Could you please update it too?

@MaikuB
Copy link
Owner

MaikuB commented Feb 15, 2022

done

@2022zhangyuhui
Copy link

你好,flutter_local_notifications在oppoandroid 11上没有效果,通道自定义失败原因,能帮忙看看什么?我们公司正在开发推送自定义铃声,急需解决。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants