Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created March 22, 2017 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hitherejoe/bf8095cbc7e047b3f1279b957a95a3b9 to your computer and use it in GitHub Desktop.
Save hitherejoe/bf8095cbc7e047b3f1279b957a95a3b9 to your computer and use it in GitHub Desktop.
NotificationManager notificationManager =
(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
List<NotificationChannelGroup> notificationChannelGroups = new ArrayList();
notificationChannelGroups.add(new NotificationChannelGroup("group_one", "Group One"));
notificationChannelGroups.add(new NotificationChannelGroup("group_two", "Group Two"));
notificationChannelGroups.add(new NotificationChannelGroup("group_three", "Group Three"));
notificationManager.createNotificationChannelGroup(notificationChannelGroups);
@owolp
Copy link

owolp commented Sep 15, 2017

The method call should be:
notificationManager.createNotificationChannelGroups(notificationChannelGroups);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment