Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

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
You can’t perform that action at this time.