flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

FirebaseMessaging.onMessage.listen trigger five times

Open adnankhan74444 opened this issue 5 years ago • 4 comments

firebase_core: ^1.3.0 firebase_messaging: ^10.0.2

FirebaseMessaging.onMessage.listen((RemoteMessage event) { print("message recieved"); print(event.notification.body); });

Print:

flutter: message recieved flutter:please check notification flutter: message recieved flutter:please check notification flutter: message recieved flutter:please check notification flutter: message recieved flutter:please check notification flutter: message recieved flutter:please check notification

adnankhan74444 avatar Jun 23 '21 14:06 adnankhan74444

Hi @adnankhan74444 Where are you listening to onMessage? Are you sure you aren't just listening to it multiple times? Thank you

markusaksli-nc avatar Jun 25 '21 06:06 markusaksli-nc

Hey @adnankhan74444. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot avatar Jul 06 '21 01:07 google-oss-bot

Since there haven't been any recent updates here, I am going to close this issue.

@adnankhan74444 if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

google-oss-bot avatar Jul 15 '21 01:07 google-oss-bot

I've same problem

arefrafei92 avatar Jul 22 '21 15:07 arefrafei92