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

Implement the Cordova FileAPI to support usage of the file system in the dev. browser

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7
    • Component/s: Emulation
    • Labels:
    • Testing Instructions:
      Hide
      1. bower install
      2. Install the app in an Android and iOS device and check that filesystem is not broken. You can add an alert to $mmEmulatorManager#loadHTMLAPI to verify that the HTML API isn't being loaded in real devices.
      3. Start Chrome/Chromium with the flag --allow-file-access-from-files.
      4. Check that you can download files in browser. Open a downloaded resource (page, imscp, ...) and check that the URL used uses filesystem: protocol. You can also check that you can open it in offline.

      NOTE: For some reasons PDFs can't be seen using the browser PDF viewer. I manually downloaded them and I could open them by using a native viewer, maybe it's something related to the encoding.

      Show
      bower install Install the app in an Android and iOS device and check that filesystem is not broken. You can add an alert to $mmEmulatorManager#loadHTMLAPI to verify that the HTML API isn't being loaded in real devices. Start Chrome/Chromium with the flag --allow-file-access-from-files. Check that you can download files in browser. Open a downloaded resource (page, imscp, ...) and check that the URL used uses filesystem: protocol. You can also check that you can open it in offline. NOTE: For some reasons PDFs can't be seen using the browser PDF viewer. I manually downloaded them and I could open them by using a native viewer, maybe it's something related to the encoding.
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE

      Description

      In MM1 we supported the Cordova FileAPI natively in the browser, we should implement a mock for the Cordova library to use the native browser FileAPI.

      This will allow us to speed-up the development of new features that uses the File API like the SCORM module

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            jleyva Juan Leyva
            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