From cb5a8b9d1b389e76e3122e7be6b3cd39155f70e4 Mon Sep 17 00:00:00 2001 From: sim Date: Wed, 6 Aug 2025 10:52:07 +0200 Subject: [PATCH] Use MessagesFetcherWorker on new push messages --- .../android/src/main/java/chat/simplex/app/PushService.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/multiplatform/android/src/main/java/chat/simplex/app/PushService.kt b/apps/multiplatform/android/src/main/java/chat/simplex/app/PushService.kt index 7f8257d849..f3cfb06679 100644 --- a/apps/multiplatform/android/src/main/java/chat/simplex/app/PushService.kt +++ b/apps/multiplatform/android/src/main/java/chat/simplex/app/PushService.kt @@ -37,10 +37,7 @@ class PushService: PushService() { when { pn.verification != null -> onVerification(pn.verification) } - // TODO: Start same job than the periodic service ? - // Receiving the push notif is enough to wake the app and fetch msgs - // But it may not be enough when the phone is in doze, or with some - // vendors + MessagesFetcherWorker.scheduleWork(200, 0) } override fun onNewEndpoint(endpoint: PushEndpoint, instance: String) {