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

Callbacks not being executed when calling requestFileSystem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 3.7.0
    • None
    • cordova-js
    • 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

              agrieve Andrew Grieve
              christophe_benoit Christophe Benoit
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: