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
The Flutter local notifications package is throwing a "Null check operator used on a null value" error when attempting to handle background notifications. This occurs specifically in the _evaluateBackgroundNotificationCallback method at line 1045 of platform_flutter_local_notifications.dart.
To Reproduce
Initialize the Flutter local notifications plugin in your application.
Set up background notification handling.
Trigger a notification while the app is in the background.
Observe the error message indicating that a null check operator was used on a null value.
Expected behavior
The expected behavior is for the notification to be handled correctly without throwing an error, allowing for proper background notification management.
Getting error at line 1045 of platform_flutter_local_notifications.dart file.
The text was updated successfully, but these errors were encountered:
The steps you've mentioned are insufficient to reproduce as they've already been followed by the example app. Did you annotate the static/top-level method associated with the callback with @pragma('vm:entry-point')? This step is mentioned in the readme as without it, the method would end up being removed during release builds where tree-shaking occurs. If you have then can you provide a link to a repository hosting a minimal app that can reproduce the issue?
The Flutter local notifications package is throwing a "Null check operator used on a null value" error when attempting to handle background notifications. This occurs specifically in the _evaluateBackgroundNotificationCallback method at line 1045 of platform_flutter_local_notifications.dart.
To Reproduce
Expected behavior
The expected behavior is for the notification to be handled correctly without throwing an error, allowing for proper background notification management.
Getting error at line 1045 of platform_flutter_local_notifications.dart file.
The text was updated successfully, but these errors were encountered: