Search code examples
firebasereact-nativefirebase-cloud-messagingreact-native-fcm

How to merge multiple messages from pushnotification as a single message in reactnative firebase


We are trying to implement PushNotification service through firebase cloud messaging. We implemented the device group which can send multiple messages to multiple devices. The problem is that each time we are sending a msg to the registered device we are getting a separate notification instead of merged notification messages like WhatsApp.

How can we achieve this functionality?

Thanks in Advance!!


Solution

  • So here am posting my own answer. What we have done is so simple yet effective. We have used tag Attribute which replaces the existing notifications with a new one.