Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ANDROID] ~ Grouping notification is not working #994

Closed
mohamed1796 opened this issue Feb 21, 2024 · 1 comment
Closed

[ANDROID] ~ Grouping notification is not working #994

mohamed1796 opened this issue Feb 21, 2024 · 1 comment

Comments

@mohamed1796
Copy link

mohamed1796 commented Feb 21, 2024

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant