React Native - Android - FCM - group group notification, for example, an application that also allows multiple group notifications

I want to display a group notification instead of multiple notifications like whatsapp. For example: One notification with a message - "2 discussions 1 comment" instead of just three notifications.

I used the react-native-fcm library ( https://github.com/evollu/react-native-fcm ) I used the group and tag keys, but could not achieve the result, as shown below.

FCM.presentLocalNotification({
  title: 'Title',
  body: 'Body',
  priority: "high",
  click_action: true,
  show_in_foreground: true,
  local: true,
  group: 'group1',
  tag: 'tag1'
});

Is it possible to achieve this functionality in response to your own FCM? Please let me know.

+4
source share

Source: https://habr.com/ru/post/1683035/


All Articles