Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-7735

Callbacks not being executed when calling requestFileSystem

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.7.0
    • Fix Version/s: None
    • Component/s: cordova-js
    • Environment:

      iOS

      Description

      When calling window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, success, error) none of the callback functions are executed.

      Several calls to window.requestFileSystem are made during the initialization of the application, after the deviceready event. All those calls are being queued in the command queue.

      If I set the bridge mode to XHR_NO_PAYLOAD in the deviceready handler with following call, cordova.exec.setJsToNativeBridgeMode(cordova.exec.jsToNativeModes.XHR_NO_PAYLOAD), the callbacks are executed as expected and my application is beinig initialized.

      If I change the bridge mode back to IFRAME_NAV when the first view is rendered, any following calls to requestFileSystem are being handled as expected.

        Attachments

        1. filesystem-issue.zip
          4.65 MB
          Christophe Benoit

          Issue Links

            Activity

              People

              • Assignee:
                agrieve Andrew Grieve
                Reporter:
                christophe_benoit Christophe Benoit
              • Votes:
                1 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated: