Enqueue a sync every time a note is saved and a burst of edits queues a burst of uploads. WorkManager's unique work, the right ExistingWorkPolicy, and retry classification that returns retry() only for transient errors keep an offline-first app from syncing against itself.
Homelab the Right Way: Proxmox, OPNsense, Home Assistant, backups and Android apps.
I run Proxmox, OPNsense and Home Assistant at home and write about doing it the right way: backups that restore, networks that are locked down, automations that just work. I also ship Android apps on Google Play as Hartmann Studios. Articles here are cross-posts from my blog (canonical links point there), drafted with AI help and edited by me.
Markdown supported · ⌘↵ to post
No responses yet.