I'm working on a program that allows the user to take GPS tagged images and put them into a que system to be uploaded the moment internet is available.
I could have the page constantly be sending ajax queries via javascript to submit the form with the pictures and text information they took note of, but what if the user never gets the connection and the device decides to restart it's self? (or runs out of batteries), which can and will happen in my particular scenario. In this scenario all the work the user did collecting images and taking notes while the internet was down would go to waste. Is there no way way to save this data every 5 seconds to cookies with javascript or anything?
Is there some way to save some of the data collected (if not the pictures) at least maybe some text that was sent with it by having the ajax perhaps point to a cached version of a page that will set a cookie to remember the information?
Also this is happening on a mobile tablet samsung galaxy tab 3. So I would be limited to the functionality of whatever the default browser is or google chrome.
I have no idea if this is even possible or the best solution to this. Any ideas are appreciated?