I was trying to implement FCM notification for a chat app and I want to achieve \"WhatsApp-like\" notification where the notification will be grouped by conversation.
<
You can use the 'tag' in the notification payload:
tag Optional, string
Identifier used to replace existing notifications in the notification drawer. If not specified, each request creates a new notification. If specified and a notification with the same tag is already being shown, the new notification replaces the existing one in the notification drawer.
source: https://firebase.google.com/docs/cloud-messaging/xmpp-server-ref#notification-payload-support