Closed
Description
Describe the bug
When upgrading from version 6.0.3 of firebase_messaging our onBackgroundMessage
handler is no longer called. Instead the following error is printed to the Android log:
I/flutter (20210): Unable to handle incoming background message.
I/flutter (20210): NoSuchMethodError: The method 'call' was called on null.
I/flutter (20210): Receiver: null
I/flutter (20210): Tried calling: call(_LinkedHashMap len:1)
This occurs even if my handler is just a simple print
statement, thus the null.call(...)
doesn't happen in my handler.
Here is where the error is logged from:
To Reproduce
Steps to reproduce the behavior:
- Add
firebase_messaging
version6.0.3
- Add a background handler that prints something to the log
- See that the message is received
- Upgrade to the latest
firebase_messaging
version - See that the message is no longer received
Expected behavior
The message should be received with both versions.
Additional context
n/a