Hi all. Is there any libraries out there that provides a common api for AndroidWorkManager and analogous api from ios (is it BackgroundTasks) ?
j
Joel Denke
02/02/2024, 6:55 AM
I asked WM team at Google about this. Sounded like they liked the idea do androidx WM potentially KMP. But dont know. Havent found a library share this yet.
Would do a thin interface layer between iOS and Android yourself. I am intend try this myself soon hopefully. The APIs very similar it looks like. Often also input is quite basic to each job.
👍 1
x
xxfast
02/02/2024, 9:29 AM
had a crude attempt to do this a while ago - but apple's implementation doesn't behave exactly the same
xxfast
02/04/2024, 5:56 AM
The biggest difference I think is how on iOS it works more-or-less like a handle that gets invoked from the same process whereas androidx.work can spun up a different process.