From 3c8b50090681372f57c6a0f665ae84295ebaf24e Mon Sep 17 00:00:00 2001 From: schwma <37244550+schwma@users.noreply.github.com> Date: Thu, 8 Nov 2018 15:56:48 +0100 Subject: [PATCH] Prevent duplicate notification sounds from message group notification --- .../main/java/com/github/gotify/service/WebSocketService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/github/gotify/service/WebSocketService.java b/app/src/main/java/com/github/gotify/service/WebSocketService.java index bd2888d..d4ef2e7 100644 --- a/app/src/main/java/com/github/gotify/service/WebSocketService.java +++ b/app/src/main/java/com/github/gotify/service/WebSocketService.java @@ -215,6 +215,7 @@ public class WebSocketService extends Service { .setSmallIcon(R.drawable.ic_gotify) .setTicker(getString(R.string.app_name)) .setGroup(NotificationSupport.Group.MESSAGES) + .setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_CHILDREN) .setContentTitle(getString(R.string.grouped_notification_text)) .setGroupSummary(true) .setContentText(getString(R.string.grouped_notification_text))