ushahidi / Ushahidi_Android

[Deprecated] Ushahidi Android app For Ushahidi V2.x.x. Working on V3.x.x at
https://github.com/ushahidi/platform-android/
GNU Lesser General Public License v3.0
202 stars 148 forks source link

Properly handle successfully uploaded report but bad server response. #131

Closed eyedol closed 11 years ago

eyedol commented 11 years ago

Sometimes when you make an Ushahidi API call to submit a report, the report is successfully uploaded to the server but then something else happens and the server returns an unexpected response. At the moment, we use the status code returned by the server to determine if the report successfully got uploaded then delete the pending report on the app.

Now to determine if the report was successfully created is the issue, since the Ushahidi API doesn't return the created report's ID.

Question: Just delete the pending report on the app when there is no status code from the server? or flag the pending report as unknown status so the user takes the appropriate action? -- Delete the report manually.

eyedol commented 11 years ago

Resort to default action, Delete. Not sure how to properly handle it.