From e8f412b8a1c32bd76bd7c777e0f361efb73b79b8 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Thu, 20 Jan 2022 17:07:14 +0000 Subject: [PATCH 1/2] adding back periodic flag when scheduling automatic background workers --- .../matrix/android/sdk/internal/session/sync/job/SyncWorker.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/job/SyncWorker.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/job/SyncWorker.kt index 2f1241f4d8..bdccb59221 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/job/SyncWorker.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/job/SyncWorker.kt @@ -151,6 +151,7 @@ internal class SyncWorker(context: Context, workerParameters: WorkerParameters, sessionId = sessionId, timeout = serverTimeoutInSeconds, delay = delayInSeconds, + periodic = true, forceImmediate = forceImmediate ) ) From 28130489c73d91ab9a6ffe0951094c6a6bc80b96 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Thu, 20 Jan 2022 17:12:59 +0000 Subject: [PATCH 2/2] adding changelog entry --- changelog.d/5003.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/5003.bugfix diff --git a/changelog.d/5003.bugfix b/changelog.d/5003.bugfix new file mode 100644 index 0000000000..299cf15cd8 --- /dev/null +++ b/changelog.d/5003.bugfix @@ -0,0 +1 @@ +Fixing missing notifications in FDroid variants using `optimised for battery` background sync mode \ No newline at end of file