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

New download all option (for downloading all the course contents)

    XMLWordPrintable

Details

    • Hide

      For the following tests please remember that you can clear a site's storage from App Settings > Space Usage.

      1. Open the app in browser. Try to use download all and check that an error is shown and the status is kept as not downloaded (download icon shown).
      2. Now install the app on a real device and perform the following tests:
        • Check that a confirm modal is shown if you try to download more than 10MB without WiFi or more than 100MB with WiFi.
        • Download all the resources in a course. Check that the right icons are shown during and after the download. Check that the right icons are shown next to the modules inside the course contents.
        • Download all the resources in a course again, but this time go back to "My Courses" and open the course again while the download is ongoing. Check that the download is "resumed".
        • Open a section not downloaded, click all the modules download icons (1 by 1) and then go back to sections list (if you're on tablet you won't have to go back since it'll be in the split view). Check that the affected section now is marked as being downloaded.
        • Open a course with at least 1 section to be downloaded/refreshed. Instead of clicking the download button next to "All sections", click all the sections download buttons. Check that, once you click the last download button, the download button next to "All sections" disappears.
        • Start a section download (or all sections) and kill the app while it's ongoing. Restart the app, go to the course again and check that the download is restored.
      Show
      For the following tests please remember that you can clear a site's storage from App Settings > Space Usage. Open the app in browser. Try to use download all and check that an error is shown and the status is kept as not downloaded (download icon shown). Now install the app on a real device and perform the following tests: Check that a confirm modal is shown if you try to download more than 10MB without WiFi or more than 100MB with WiFi. Download all the resources in a course. Check that the right icons are shown during and after the download. Check that the right icons are shown next to the modules inside the course contents. Download all the resources in a course again, but this time go back to "My Courses" and open the course again while the download is ongoing. Check that the download is "resumed". Open a section not downloaded, click all the modules download icons (1 by 1) and then go back to sections list (if you're on tablet you won't have to go back since it'll be in the split view). Check that the affected section now is marked as being downloaded. Open a course with at least 1 section to be downloaded/refreshed. Instead of clicking the download button next to "All sections", click all the sections download buttons. Check that, once you click the last download button, the download button next to "All sections" disappears. Start a section download (or all sections) and kill the app while it's ongoing. Restart the app, go to the course again and check that the download is restored.
    • MOODLE_26_STABLE
    • MOODLE_26_STABLE

    Description

      A new option for downloading all the course contents will be added in the course content section.
      This option will download sequentially all the resources and activities that require file downloading (like SCORM) in the app using a download process.

      All the resources downloaded via this process will be available offline. For resources that are currently downloaded this option will force the download again only if the resource was updated in the server.

      Download process differences between Android and iOs:
      In iOs (iPhone, iPad) if the app goes to background the downloads are frozen. (This is something that we can’t control, is done automatically by the operating system)
      In Android, even if the app is in background the download continues.

      Some things to consider:

      1. Previously to start downloading files, we should calculate the total download size and:
      2. * If the user is not connected via Wi-Fi and the download size is >= XMB? Display a confirm dialog so the user must confirm the download (indicating the approximate size)
      3. * If the user is connected via Wi-Fi and te download size is >= YMB? Display a confirm dialog so the user must confirm the download (indicating the approximate size)
      4. * In both cases, try to retrieve the remaining sdcard space and show warnings in case if it's not enough or very close to the download size

      X and Y... what about 10MB for no Wi-Fi and 100MB for Wi-Fi?

      Maybe we should display a download progress with %?

      Attachments

        1. android_download.png
          android_download.png
          101 kB
        2. android_downloading.png
          android_downloading.png
          102 kB
        3. android_refresh.png
          android_refresh.png
          96 kB
        4. download-all.jpg
          download-all.jpg
          25 kB
        5. download-divider-tablet.jpg
          download-divider-tablet.jpg
          54 kB
        6. download-header-mobile.jpg
          download-header-mobile.jpg
          35 kB
        7. download-header-tablet.jpg
          download-header-tablet.jpg
          39 kB
        8. download-sidemenu-tablet.jpg
          download-sidemenu-tablet.jpg
          57 kB
        9. ipad_downloading.jpg
          ipad_downloading.jpg
          254 kB

        Issue Links

          Activity

            People

              dpalou Dani Palou
              jleyva Juan Leyva
              Frédéric Massart Frédéric Massart
              Juan Leyva Juan Leyva
              Juan Leyva Juan Leyva
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

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