Hi, I am trying to implement offline sync function...
# flow
m
Hi, I am trying to implement offline sync functionality. I have my NetworkConnectionFlow which emits true/false based on connectivity, and I have UnsyncedItemsFlow which emits items from Room which need to be synced to the backend server whenever connectivity comes online. Is it possible to collect from the UnsyncedItemsFlow only when the network flow returns true? I don't want to drop any unsynced items on the floor either, so I want the emissions to remain unprocessed until network comes online Thanks in advance
I found out about Workmanager. Trying that instead