invertase / notifee

⚛️ A feature rich notifications library for React Native.
https://notifee.app
Apache License 2.0
1.88k stars 228 forks source link

[ANDROID] ~ Grouping notification is not working #994

Closed mohamed1796 closed 9 months ago

mohamed1796 commented 9 months ago

I'm trying to implement notifications grouping following instructions in this page, but it's not working as expected.

I'm repopulating the issue using this code example

       // Create summary
      const id = await notifee.displayNotification({
        title: 'Emails',
        subtitle: '3 Unread Emails',
        android: {
          channelId: channelId,
          groupSummary: true,
          groupId: '123',
          groupAlertBehavior: AndroidGroupAlertBehavior.CHILDREN,
        },
      });

      // Children
      await notifee.displayNotification({
        title: 'New Email',
        body: 'Tap to open your email 1.',
        subtitle: 'Unread',
        android: {
          channelId: channelId,
          groupId: '123',
          groupAlertBehavior: AndroidGroupAlertBehavior.CHILDREN,
        },
      });

      // Children
      await notifee.displayNotification({
        title: 'New Email',
        body: 'Tap to open your email 2.',
        subtitle: 'Unread',
        android: {
          channelId: channelId,
          groupId: '123',
          groupAlertBehavior: AndroidGroupAlertBehavior.CHILDREN,
        },
      });

The created notification are showing as the following:

issue#1

So how I can solve this issue?

mohamed1796 commented 9 months ago

I just realised that this how it is grouping, I expected that it will look like whatsapp messages.