[Solved] How to use onMessage in configure method deprecated in firebase_messaging 8.0.0-dev.14 #4733
Answered
by
nestorsgarzonc
nestorsgarzonc
asked this question in
Q&A
-
Hi, I'm trying to use the onMessage callback in configure method that is present in versions before 8.0.0 like this:
I read the changelog and say that I need to use streams but I don't know how to do this :( |
Beta Was this translation helpful? Give feedback.
Answered by
nestorsgarzonc
Jan 20, 2021
Replies: 1 comment
-
UPDATEI find that I can use using static method onMessage in the class FirebaseMessaging like this:
😁😁😁 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nestorsgarzonc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
UPDATE
I find that I can use using static method onMessage in the class FirebaseMessaging like this:
FirebaseMessaging.onMessage.listen((RemoteMessage message) async { await myBackgroundMessageHandler(message); });
😁😁😁