I have a local database where I maintain some document statuses and update them(in-progress to success or failure) as they get uploaded. How do I updated the status (in-progress to failure) if the app crashes or is force closed ?
Currently I am using volley to upload some documents and on response updated the database. My only concern is that the database will be inconsistent if the user force closes or the app crashes. Is it a good idea to make the api call inside a service. Are there any other alternatives ?