Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-778 META: Migrate to Ionic
  3. MOBILE-956

$mmFS.calculateFreeSpace not working in iOS

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: iOS
    • Labels:
    • Testing Instructions:
      Hide

      Since we don't have the settings addon yet it's not easy to test. There are two different ways:

      1. Manually
      Modify the code to call this function and write the result in the console or use an alert (please notice you need to wait for ready event). Install the app in an iOS device and check that the output value is not 0.

      2. With settings
      Merge this code with the settings addon, install the app on a real device and check that the free space on an iOS device is not 0.

      Show
      Since we don't have the settings addon yet it's not easy to test. There are two different ways: 1. Manually Modify the code to call this function and write the result in the console or use an alert (please notice you need to wait for ready event). Install the app in an iOS device and check that the output value is not 0. 2. With settings Merge this code with the settings addon, install the app on a real device and check that the free space on an iOS device is not 0.
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE
    • Pull Master Branch:

      Description

      This function seems to work in Android, but it doesn't in iOS (returns 0).

      In this StackOverflow post a solution is provided, but it makes you modify the plugin's code.

      We should think what to do with this. If we don't want to use the solution above we might need to implement a solution like MM1: use window.requestFileSystem until we find the right size.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              31/Jul/15