Pick the fix
Users on trains see 'No connection' and lose the note they just wrote. Best design?
Hint 1 of 1
Where should the note live until it's uploaded?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Save the note to Room immediately and enqueue a sync worker with a network constraint
Correct. The note is safe and syncs when the network returns.
Why not the others?
- B Disable the Save button while offline. Users can't save at all.
- C Retry the request in a loop until it works. Drains battery and still loses the note if the app is killed.
- D Check connectivity before saving. Checks are unreliable on trains, and the note is still lost.