krv
krv

Reputation: 2910

Group Firebase FCM on Android Device

I am trying to send cloud messages using the Firebase console. I am doing this for android device.

The push notifications do appear on the device fine along with the data sent with it.

But each notification shows up on its own. Meaning if I send 3 notifications three items show up in the notification bar.

What I want to achieve is that all the notifications to be grouped under one heading. As you have in WhatsApp or Facebook.

How can this be achieved using the Firebase Console?

Upvotes: 0

Views: 891

Answers (1)

AL.
AL.

Reputation: 37768

By grouping the notification, do you mean stacking or bundling notifications?

If so, this is actually depends on how you handle notifications in your client app. You simply have to make use of the setGroup() to add all your notifications to a single group then calling notify() to let the NotificationManager of the changes.

This Add Each Notification to a Group documentation pretty much sums it all up.

Upvotes: 1

Related Questions