Xamarin.Forms - Keep uploading image besides using the app
Hey!
I have a Xamarin.Forms app for Android and iOS. The users can take pictures, adjust them a bit and send them to a server when done.
Now two problems can occur:
- When the connection is bad, the image is not send.
- When multiple users are sending their pictures to the server at the same time, it can take too long in which the image is not send and the app might crash because of a bad connection exception.
Now I'm looking for a solution where the image are 'parked' somewhere to be uploaded, in which the app keeps trying the upload even though the connection is bad, or at least is able to perform the upload when everything is fine again.
In general: I need a fail-safe for the image upload, so that by the end of the day all images are uploaded to the server (even if it takes an hour to do so).
I'm not sure what the possibilities are for this or if there are examples on how to construct this. I hope someone is able to guide me in this.
Best,