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()