Skip to content

Survey Management for Developers

Michael edited this page Jan 30, 2021 · 1 revision

The user's device is responsible for keeping track of which survey needs to be taken at which moment. A Json blob is stored of all of the surveys (labled "Survey_") and whether that survey has been completed or not, start/end dates etc. (See libertas_people/assets/mock_data/survey_list_for_local_storage.json for an example).

The Qualtrics API does not allow for user management for survey takers. Looking forward in the future, a microservice may be necessary to manage users, and send out custom push notifications to their devices. The above json file could be copied in the microservice along to a reference for each user.

Currently, an entire survey session is stored on the device locally, with its questions, possible responses, and answers to be submitted. Upon completing the last question, the application tries to send the survey response in one API request to qualtrics.

Upon success, the user is notified, the current session is deleted from the phone, and the survey's 'completed' boolean is updated in the survey_list_for_local_storage.json file.

If their is a failure to submit the survey (due to a lack of service) the user will be notified, but the survey is not automatically sent to Qualtics (See outstanding work below)

Clone this wiki locally