0

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.

1 Answers1

0

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

Sultan Mahmud
  • 1,245
  • 8
  • 18
  • I don't think this answers my question. What you provided may be a workaround but that does not answer it. – Edward Bryan Apr 17 '19 at 05:54
  • @EdwardBryan please share your code for further better understanding – Sultan Mahmud Apr 17 '19 at 06:28
  • The link you provided has a comment that leads to the correct documentation as to why setGroupSummary and setShowBadge does not work. It seems that setGroupSummary should be added on Group Notification and setShowBadge should be on the Child Notification – Edward Bryan Apr 17 '19 at 07:13