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

Prefetch and download a file at the same time causes problems

XMLWordPrintable

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

      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.

            dpalou Dani Palou
            dpalou Dani Palou
            Juan Leyva Juan Leyva
            Juan Leyva Juan Leyva
            Juan Leyva Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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