Keep the push foreground service alive while notifications are fetched (#7639)

* Keep the push foreground service alive while notifications are fetched

* Release the push foreground service as soon as results are handed over

---------

Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
This commit is contained in:
Johannes Marbach
2026-09-04 10:56:41 +02:00
committed by GitHub
parent 67f287af39
commit 8a32f5a001
5 changed files with 119 additions and 15 deletions
@@ -8,7 +8,8 @@
package io.element.android.libraries.push.api.push
/**
* A helper to manage the foreground service used to keep the device awake while we schedule and wait for the work to fetch the notification content to run.
* A helper to manage the foreground service used to keep the device awake, and the process out of background execution limits, from the moment
* a push is received until the fetched notification content has been handed over for display.
*/
interface FetchPushForegroundServiceManager {
/**