[Stability] Show warning and allow users to remove uploaded photos and offline imagery when device is almost full
We must handle these two cases:
- [ ] Device almost full: warn and don't allow download of more imagery.
- [ ] Device full: show error and exit
The app will currently just crash when the device is full.
@gino-m : This would only be helpful if user could actually take action to resolve.
@shobhitagarwal1612 : We could allow users to clear cache (uploaded photos, etc.)
This issue is not specific to Ground; it will happen with any app on a full device. Recasting this as a FR to allow users to show a warning and clear up space when the device gets full.
MVP: Show some sort of warning when there is less than x Mb disk space allowed? Multiple check points (taking a photo in particular)
The main concern is that the device is close to full when the user starts collecting data, causing their data to be lost. We should check the storage space at each data collection task and show an modal error if it goes below a certain point.
We should also show the amount of storage available and required on the offline imagery download screen