Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-2400

A SCORM reloads the app when left

    XMLWordPrintable

Details

    Description

      How to reproduce:

      1. Login in next 34 as student.
      2. Go to Course with SCORMS > Complex packages > Multiple organizations ...
      3. Open the SCORM and, once it's loaded, go to the next SCO using the top right arrow.
      4. Once the new SCO is loaded, leave the SCORM. The app will be reloaded.

      I investigated this a bit and I think the reload isn't caused by the iframe. It also happened to me in a really simple SCORM, so I looked at the SCORM code and there wasn't any refresh in there. Then I added 'sandbox="allow-scripts"' to the iframe and it's still reloading, so I guess it's something related to Angular, Ionic or our code.

      I debugged the code step by step using Chrome Dev Tools and I wasn't able to find out why is it being reloaded. I also added some console.log to the file node_modules/@angular/platform-browser/esm5/platform-browser.js, in some functions that could cause the reload, but none of them were called during this refresh.

      This is the other case it happens:

      1. Login in next 34 as student.
      2. Go to Course with SCORMS > Simple packages > RuntimeBasicCalls SCORM12(1).
      3. Navigate to the last page, answer some question and click Submit Answers. After that, click Exit.
      4. Once done, leave the SCORM. The app will be reloaded.

      Attachments

        Issue Links

          Activity

            People

              albert.gasset Albert Gasset
              dpalou Dani Palou
              Juan Leyva Juan Leyva
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                25/Jun/18