Ad

Why Notification Badge In Android O Does Not Show When SetGroupSummary Is Set?

- 1 answer

I was wondering and checked most of the questions here, and did some research on why this is happening, because how I set my badge is based on Android Developer Site

I encountered that my badge does not show when I have set the

builder.setGroupSummary(true); I also did a lot of debugging checking if I have done anything wrong within my code but whenever I remove this line of code, the badge shows up again.

Ad

Answer

First, create a separate group notification and set the group summary flag true and it becomes the parent notification that bundles other notifications with the same group key within itself. Like this:

setgroup() in notification not working

Ad
source: stackoverflow.com
Ad