You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/03/06 19:52:43 UTC

[jira] [Commented] (CB-6047) File plugin callback problem with android 4.4 kitkat

    [ https://issues.apache.org/jira/browse/CB-6047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13922879#comment-13922879 ] 

ASF subversion and git services commented on CB-6047:
-----------------------------------------------------

Commit f69e724c6e0281907cadb41647898825cb40e849 in cordova-amazon-fireos's branch refs/heads/master from [~agrieve]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-amazon-fireos.git;h=f69e724 ]

CB-6047 Fix online sometimes getting in a bad state on page transitions.

The online bridge toggles between on & off. Turns out that starting with
Android 4.3, navigation resets the online state, so the code had a 50/50
chance of being caught in the wrong state.

We now forcefully reset the online state on page transitions.


> File plugin callback problem with android 4.4 kitkat
> ----------------------------------------------------
>
>                 Key: CB-6047
>                 URL: https://issues.apache.org/jira/browse/CB-6047
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 3.3.0
>         Environment: Android 4.4
> dev windows
> IDE Eclipse
> Cordova 3.3
>            Reporter: *robin
>            Assignee: Andrew Grieve
>             Fix For: 3.5.0
>
>         Attachments: test_fs.zip
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.2#6252)