Hi everyone! In a KMM project targeting Android, ...
# multiplatform
a
Hi everyone! In a KMM project targeting Android, iOS, and Desktop, I’m looking for the best way to handle periodic background sync — kind of like how we can use WorkManager on Android. Any suggestions?
k
i would use
expect/actual
and implement it in each platform
u
WorkManager on android, BackgroundTasks on iOS and maybe cardiologist on desktop, yes you have to use expect actual
a
Thanks a lot for the suggestions 🙏🏻 @Kyrylo @אליהו הדס + I think that BackgroundTasks on IOS might not work as reliably due to iOS limitations on background execution ?
u
@Abdo on ios it's the native solution, it's the one that gives the best results, and we will have to deal with the limitations of each platform, it's not a choice that is offered to us
1
🙌 1