How not to duplicate a message on all user tokens?

78 views
Skip to first unread message

Валерий Круглов

unread,
May 20, 2022, 11:00:45 AM5/20/22
to Firebase Google Group
On our site, each user has a list of tokens for different devices. In case of an important notification for the user, using FCM Messagin sendMulticast we send a push notification for all user tokens. If the user has a website open on the device, then the push does not come to him.

Is it possible to make sure that pushes do not come if the site is open on at least one device, or are deleted from all devices if they are open on any other?

Thanks a lot!
Reply all
Reply to author
Forward
0 new messages