From e3231970a3c347f3ef1d1c3b8c67159ef4b2c5ab Mon Sep 17 00:00:00 2001 From: Mikael Hugo Date: Fri, 15 May 2026 06:48:01 +0200 Subject: [PATCH] Allow PRIORITY_HIGH notifications to bypass DND with normal beep PRIORITY_MAX still plays the insistent looping alarm until manually stopped. PRIORITY_HIGH now also bypasses DND but uses the standard notification sound + vibration pattern (no looping alarm). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../main/java/com/centralcloud/oncall/msg/NotificationService.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/centralcloud/oncall/msg/NotificationService.kt b/app/src/main/java/com/centralcloud/oncall/msg/NotificationService.kt index 4dfb944d..e425f251 100644 --- a/app/src/main/java/com/centralcloud/oncall/msg/NotificationService.kt +++ b/app/src/main/java/com/centralcloud/oncall/msg/NotificationService.kt @@ -381,6 +381,7 @@ class NotificationService(val context: Context) { PRIORITY_HIGH -> { val channel = NotificationChannel(channelId, context.getString(R.string.common_priority_high_name), NotificationManager.IMPORTANCE_HIGH) channel.enableVibration(true) + channel.setBypassDnd(true) // Bypass DND but do not play insistent alarm channel.vibrationPattern = longArrayOf( pause, 100, pause, 100, pause, 100, pause, 2000