https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
a

Andrey Larionov

12/11/2023, 12:00 AM
Hello, could you share any suggestions on how to 1. manage the lifecycle 2. perform background tasks for iOS/Desktop/Web (with Wasm) configurations?
l

Leon Kiefer

12/11/2023, 12:34 AM
We are using coroutines and a simple self written WorkManager, which schedules and executes tasks.
a

Andrey Larionov

12/11/2023, 1:27 AM
it would be great if you can share WorkManager implementation you have I don’t know if it’s possible, but I want to manage lifecycle as I manage it with Android configuration (for example with ON_RESUME and ON_STOP)
l

Leon Kiefer

12/11/2023, 9:04 AM
Our work manager works more like AndriodWorkManager, which has a global scope in the application and is not bound to any smaller lifecycle scope as views.