diff --git a/app/src/main/kotlin/com/wire/android/ui/debug/StartServiceReceiver.kt b/app/src/main/kotlin/com/wire/android/ui/debug/StartServiceReceiver.kt index 6b6ab479594..93dd70ce2ce 100644 --- a/app/src/main/kotlin/com/wire/android/ui/debug/StartServiceReceiver.kt +++ b/app/src/main/kotlin/com/wire/android/ui/debug/StartServiceReceiver.kt @@ -47,14 +47,7 @@ class StartServiceReceiver : BroadcastReceiver() { override fun onReceive(context: Context?, intent: Intent?) { appLogger.i("$TAG: onReceive called with action ${intent?.action}") - /** - * We may get any event from the system, so we need to check if the action is ACTION_BOOT_COMPLETED or - * ACTION_LOCKED_BOOT_COMPLETED to start the persistentWebSocketService otherwise - * ForegroundServiceStartNotAllowedException will be thrown. - */ - if (intent?.action == Intent.ACTION_BOOT_COMPLETED || intent?.action == Intent.ACTION_LOCKED_BOOT_COMPLETED) { - scope.launch { startPersistentWebSocketService() } - } + scope.launch { startPersistentWebSocketService() } } companion object {