fix: a minimised desktop stays connected, and iOS gets its grace (notifications, Phase 8)
AppLifecycle answers two questions now: whether somebody is looking, and whether the live subscriptions should be open. Compose Desktop reports a minimised window as stopped, which closed every subscription; the desktop holds them for as long as it runs. On iOS a background task holds them for 25 seconds after leaving the screen so queued work can still go out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
53d1beb941
commit
74c7a0dd7f
14 files changed
+217
-19
No files matched your search
@@ -0,0 +1,8 @@
|
||||
package mobi.giza.compose
|
||||
|
||||
import kotlin.time.Duration
|
||||
|
||||
actual val platformBackgroundGrace: Duration = Duration.ZERO
|
||||
|
||||
/** Android's background work is WorkManager's (Phase 10); there is no task to wrap. */
|
||||
actual suspend fun <T> inPlatformBackgroundTask(name: String, block: suspend () -> T): T? = block()
|
||||
Reference in new issue
Block a user