Synchronizing data with WorkManager #1884
Replies: 2 comments
-
I think its fair to say it’s the cons using workmanager with that scheme. The good thing about that scheme in comparison with sync data in the first screen, Regarding it shows old data, one approach is to tell the user by showing " it’s outdated and that we’re fetching new data" a kind of message. In the end, I think this is not a one fit for all solution |
Beta Was this translation helpful? Give feedback.
-
If you want to show the latest data before the user gets there, fetch new data in the background and repeat it for some period. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I read WorkManager in offline-first apps topic and viewed Nia's source code many times. But there is one thing confusing me:
If the synchronization takes long time, screen will displays a outdated data - Does it is a cons of synchronzing by using WorkManager? Therefore, instead of synchronzing by WorkManager when starting up app in Application, I can synchronize data in the first app's screen.
Beta Was this translation helpful? Give feedback.
All reactions