Hi everyone, I’m looking for an example of handlin...
# getting-started
v
Hi everyone, I’m looking for an example of handling offline data. Specifically, I want to store data fetched from the network and display it in the UI. If it’s the first time, the app should fetch data from the network; otherwise, it should use the stored data. I’d also like to know the best way to handle data synchronization — for example, when a user saves new data while offline, it should automatically sync to the server once the network is available. This should work across android, iOS and desktop in a multiplatform setup.
not kotlin but kotlin colored 3
c
This page in the Android docs should be helpful. The overall architecture doesn't change with different platforms, but you will need to adapt the synchronization strategy for each platform since WorkMansher is only available on Android https://developer.android.com/topic/architecture/data-layer/offline-first
v
Thanks for sharing, yes work manager will work on android. Any idea what should I use for iOS and desktop