Reputation: 21
I am using firebase for notification. I want to send notification to the group of users... If any one of them press accept notification action button then, the same notification must be remove from the other users device. Is it possible to do using firebase.
Ex. I want to send notification to 5 delivery boys for collecting parcel from XYZ place, if any of them accept the collecting parcel order notification then the same notification must be remove from other 4 delivery boys autometically.
I study and practically done an example of https://firebase.google.com/docs/cloud-messaging/android/device-group Notification send to all 5 del. boys but notification still there after accepting the collecting order. Please, help.
Upvotes: 1
Views: 1904
Reputation: 600110
Firebase Cloud Messaging has two distinct types of messages:
What you're describing sounds like you want to use data messages only, and then use Android's notification UI/API to display, update, or hide a notification.
Upvotes: 2