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

Flutter local notifications showing Null check operator used on a null value #2521

Open
raj-witbybit opened this issue Jan 24, 2025 · 0 comments

Comments

@raj-witbybit
Copy link

raj-witbybit commented Jan 24, 2025

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.

Image

Image

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

No branches or pull requests

1 participant