Using machine learning to investigate sympathetic activation of the autonomic nervous system (SAANS) during the treatment of mild traumatic brain injury, chronic pain, and post-traumatic stress disorder.
The app should be able to be robust to loss of internet connectivity. The most obvious way to deal with that is to implement local storage:
Data is saved on the device during the session;
At end of session: an attempt is made to upload the session data to the server;
If upload is unsuccessful; the file is stored in a directory of failed uploads.
User is asked to answer a security question whose answer will let them claim ownership of the file once connection is re-established. (i.e. what was your first pet's name, paternal grandmother's given name, etc.)
When connection is re-established, file ownership can be claimed and file is uploaded.
The app should be able to be robust to loss of internet connectivity. The most obvious way to deal with that is to implement local storage: