-
Improvement
-
Resolution: Done
-
Minor
-
3.6.0
-
-
MOODLE_36_STABLE
-
MOODLE_36_STABLE
-
Moodle Mobile 3.6.1
With the check updates WS, we now have a new problem regarding activities that can be prefetched and done in offline.
When the user generates some data in the app, the WS check_updates detects that there are some changes in the data (the one that was created by the app) so the activity is marked as outdated.
This is a major problem in scorm, lesson and quiz, since we require the user to have the data up to date before being able to continue the activity. This causes the following behaviour:
- The user prefetches the activity.
- The user opens the activity in online and generates some new data.
- The user leaves the activity and goes offline.
- The user tries to continue the activity in offline. He can't because the activity isn't up to date.
For lesson I thought we could be able to store the last time we prefetched the pages viewed/answered (not the whole module) and then compare that value with the result of check_updates, but the check_updates WS only returns the IDs of the items, not the date so it isn't possible.
The only option left is to re-download the whole module everytime the user leaves the activity, but that can increase the data usage a lot, specially if some file changes while the user was doing the activity. Maybe we should re-download only if the user is on wifi? Should we add a new setting?
Any idea will be appreciated
- has been marked as being related by
-
MOBILE-2114 Prefetch data after syncing and just when leaving a SCORM activity
-
- Closed
-