From 2c596d044168e7404017f069b5726576f0132e92 Mon Sep 17 00:00:00 2001 From: ohassine Date: Wed, 6 Nov 2024 11:18:24 +0100 Subject: [PATCH] chore: setForegroundServiceBehavior for persistent websocket service --- .../com/wire/android/services/PersistentWebSocketService.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/kotlin/com/wire/android/services/PersistentWebSocketService.kt b/app/src/main/kotlin/com/wire/android/services/PersistentWebSocketService.kt index 75087eaeac..4d2f5c4c5f 100644 --- a/app/src/main/kotlin/com/wire/android/services/PersistentWebSocketService.kt +++ b/app/src/main/kotlin/com/wire/android/services/PersistentWebSocketService.kt @@ -129,6 +129,7 @@ class PersistentWebSocketService : Service() { .setSmallIcon(R.drawable.websocket_notification_icon_small) .setContentIntent(openAppPendingIntent(this)) .setCategory(NotificationCompat.CATEGORY_SERVICE) + .setForegroundServiceBehavior(NotificationCompat.FOREGROUND_SERVICE_IMMEDIATE) .setAutoCancel(false) .setOngoing(true) .build()