FirebaseMessaging.onMessage.listen trigger five times
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
Hi @adnankhan74444
Where are you listening to onMessage? Are you sure you aren't just listening to it multiple times?
Thank you
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!
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.
I've same problem