-
Bug
-
Resolution: Fixed
-
Minor
-
3.9
-
MOODLE_39_STABLE
-
MOODLE_39_STABLE
-
MDL-68918-master -
-
Moppies Kanban
xAPI uses the contextid of the activity to be able to determine what context sent the statements. However, the Moodle app doesn't know the contextid of the activity so we cannot support tracking in offline in the app.
I discussed this with Juan and we thought 3 different solutions:
1- Return the contextid of modules in the WebService core_course_get_contents. That way the app can have the contextid of any activity.
2- Return the contextid of the activity in the WebService mod_h5pactivity_get_h5pactivities_by_courses. It'll have less impact than the previous solution since it implies modifying a WS that has been added in this release.
3- Modify the xAPI URL so it doesn't ask for the contextid. An alternative would be to use the contextlevel and the instanceid like it's done in other WebServices like core_filters_get_available_in_context.
4- Modify the h5p xAPI handler to accept both contextid and something like "instance/XXX" value. Any activity related information sended via xAPI is encoded in IRI format so we are not restricted to integers. This way the APP can use a different, but yet standard, xAPI activity id.
- has been marked as being related by
-
MDL-68935 Return contextid in core_course_get_contents
-
- Closed
-