I currently have a windows app I wrote that interacts with data from a web API. I'm trying to make an android version to carry around with me. Generally only one person accesses the data from their account, but from multiple devices. I tried to go local-first, by updating the local RoomDB first and then creating a worker to update the API as connection was available.
The problem I'm running into is the API needs to be the single source of truth. It assigns Id's to the records. I want the app to work offline, but I'm stumped on a good strategy to keep everything in sync. For the sake of argument, let's just call it a simple todo app. I want to be able to do simple CRUD operations from my phone, and be notified when they're due.
I've searched all over on this and nothing seems to fit. Any ideas or resources i might have missed?