What the purpose of setGroup() in Notification.Builder?

前端 未结 2 1841
日久生厌
日久生厌 2021-02-09 14:38

I have a some troubles with understanding of goal of setGroup() method.

As docs said :

...Grouped notifications may display in a cluster or stack on d

2条回答
  •  我寻月下人不归
    2021-02-09 15:19

    setGroupSummaryis there to support grouped notifications on devices before Nougat. It replaces the single notifications with 1 summary notification. On Nougat+ the system creates a normal group, which is not your notification with setGroupSummary(true)

提交回复
热议问题