App Crash causes data loss if phone storage is full
Opened this issue · 1 comments
Describe the bug
It is possible to los app data when trying to sync fi the phone storage is already full
To Reproduce
Steps to reproduce the behavior:
- Fill up the phone storage to near capacity
- Upload more docs to the server
- Try to sync and download the additional documents
- See error
Expected behavior
No loss of data whtsoever. The app should warn you before syncing if phone storage is full
Logs
#170 (comment)
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
- Instance: local
- Android Version: 9
- App Version: (eg: 0.7.3, 0.9.0, etc)
Additional context
#170
Clarifying question: is there actual data loss here in the sense that data that only exists on the phone is lost, gone, and not synced to the server?
Maybe I am misunderstanding things, but it seems like the issue being described is that the data exists on the server, but there is not enough room to sync them to the phone so the sync errors out and the new data from the server is not actually stored on the phone (but no data is really "lost" since it is still on the server...). Sorry if I am just misunderstanding things here but "data loss" sounds really scary to me and I want to understand if that is what is really happening here or if we are just failing to sync data from the server...