I integrated Firebase Messaging using local notification in my app, when User A send friend request to User B ,, then User B receives notification. But the problem is when User B logout and User A send friend request to User B then notification also showing to User B even User B is logout.. So basically how can I terminate notifications when user is logout ??
I don't want to show notifications to Logout Users..
Thanks in advance
You can use FirebaseMessaging.deleteToken();
as shown in this linked https://pub.dev/documentation/firebase_messaging/latest/firebase_messaging/FirebaseMessaging/deleteToken.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With