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

Prefetch and download a file at the same time causes problems

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create a resource with one file in it. Try to use a big file (I used a 10MB PDF).
      2. In the app go to the section and click the prefetch button next to the resource.
      3. Quickly, enter the resource and click Open.
      4. Check that the download modal disappears when the file is downloaded and the file is opened. Test it both in Android and iOS.
      Show
      Create a resource with one file in it. Try to use a big file (I used a 10MB PDF). In the app go to the section and click the prefetch button next to the resource. Quickly, enter the resource and click Open. Check that the download modal disappears when the file is downloaded and the file is opened. Test it both in Android and iOS.
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE

      Description

      Steps to reproduce:

      1. Create a resource with one file in it. Try to use a big file (I used a 10MB PDF).
      2. In the app go to the section and click the prefetch button next to the resource.
      3. Quickly, enter the resource and click Open.
      4. If both processes download the file at the same time ($mmWS#downloadFile) it causes unexpected behaviors:
        • Android: Shows an error modal when it shouldn't. The content of the modal depends on which download finishes first.
        • iOS: The ionLoading is shown forever.

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            dpalou Dani Palou
            Peer reviewer:
            Juan Leyva
            Integrator:
            Juan Leyva
            Tester:
            Juan Leyva
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              29/Dec/15