-
Notifications
You must be signed in to change notification settings - Fork 4k
[firebase_messaging] functions are not triggered inside notification callback #3781
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
Comments
Is it possible that I've ran into this problem before and that was my mistake, not putting that |
Yes, it is async, but but the await doesn't solve the issue. I found the error, it is a data type one.
So, I guess that somehow the error is been suppressed! |
I've found that what helps me to debug is to put everything that is bound to have some sort of logic that can cause errors, in a try/catch block. Then debugPrinting out the catch exception. Then placing my breakpoint where I wrote that line to print. e.g
It could help you to find future errors like these. And honestly, ever since I moved to JsonSerializable, errors like that haven't gotten to me. |
Yep, like that the error comes out: |
@apoleo88 |
My issue is solved, but it is not clear to me why the debug error is been surpressed. |
I have the same problem, it's very hard to debug a callback error |
I have the same problem, because I added
But I need to add this service, because of the clevertap plugin needs it to render the notification. Is there any way to merge this service and FCM flutter who does not need this? |
When a notification arrives, it triggers correctly
onMessage
(and the others), but it doesn't trigger the function call inside it.I am not sure what's happening because the execution truncates without errors, is it suppressing one?
The text was updated successfully, but these errors were encountered: