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

window.resolveLocalFileSystemURI doesn't always execute callbacks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Invalid
    • 1.7.0
    • None
    • cordova-android
    • None
    • Galaxt Tab 10.1 running Android 3.2

    Description

      I have a block of code that attempts to read a temp.json file that my application uses to hold various pieces of information.
      However, intermittantly, the callbacks for window.resolveLocalFileSystemURI don't fire. (Either success or fail?!)
      I've simplified the code to the following example below.
      Using the console.log I can see that on occasion, it doesn't get to line 3 - nor does it call the error.
      I can't see anything to indicate why the callbacks are never triggered, nor why it might do this intermittantly.

      console.log("1:Looking for workingdata in DIR:" + settingsDir);
      window.resolveLocalFileSystemURI("file://" + settingsDir, function(entry) {
      console.log("2:Resolved file system" + entry.fullPath);
      },fileSystemFail);

      function fileSystemFail(error) {
      console.log("A file system failure occured");
      console.log(error.code + ":" + lookupFileErrorCode(error.code));
      }

      Attachments

        Issue Links

          Activity

            People

              bowserj Joey Robert Bowser
              subtopia Chris Smith
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: