-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
impact: crowdAffects many people, though not necessarily a specific customer with an assigned label. (P2)Affects many people, though not necessarily a specific customer with an assigned label. (P2)plugin: messagingtype: bugSomething isn't workingSomething isn't working
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
LaemonT, rafaelcorbellini-egsys, Zazo032, windows7lake, nilsreichardt and 8 more
Metadata
Metadata
Assignees
Labels
impact: crowdAffects many people, though not necessarily a specific customer with an assigned label. (P2)Affects many people, though not necessarily a specific customer with an assigned label. (P2)plugin: messagingtype: bugSomething isn't workingSomething isn't working