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

File plugin callback problem with android 4.4 kitkat

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.5.0
    • cordova-android
    • None
    • Android 4.4
      dev windows
      IDE Eclipse
      Cordova 3.3

    Description

      I've try to use the file plugin on my android phone in 4.4 but I've got some strange problem with the callback function, succeed or fail.
      When I try to access fileSystem (window.requestFileSystem)
      The first time I don't receive the callback. But If I try a second time I've got 2 callBack.
      I've try to debug the case. I 've figure that the 2 thread executing in java (JavaBind and file plugin) are synchronise on the NativeToJsMessageQueue. When the plugin enqueue Message and the java bind pop Message.
      But I think the javabind finished before the file plugin, and never see the message in the queue. But the second time, I've got the 2 messages.

      I think this is the same problem describe here :
      http://stackoverflow.com/questions/20821536/phonegap-cordova-deviceready-or-requestfilesystem-not-working-android

      Thx

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            agrieve Andrew Grieve
            dqv69 *robin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment