Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-68918

xAPI in H5P activity requires contextid, but the Moodle app doesn't know it

XMLWordPrintable

    • 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.

       

            tusefomal Ferran Recio
            dpalou Dani Palou
            Carlos Escobedo Carlos Escobedo
            Andrew Lyons Andrew Lyons
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours, 17 minutes
                5h 17m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.