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

Ian Darling commented on CB-4796:
---------------------------------

Just as a follow-up - I'm currently doing the following as a work-around in the 
plugin to callback into JS from a thread, and just using the callbackContext as 
a "this action was accepted" indicator.  I then register/deregister the event 
in the JS code accordingly.

    
this.webView.sendJavascript(String.format("cordova.fireDocumentEvent('eventName',
 {%s });"));

There was a response to my question on the google group about how this is due 
to callbackContext needing to be "final" for the thread to be able to reference 
it, and that affects it's behaviour.

> FileTransfer Upload Progress does not work
> ------------------------------------------
>
>                 Key: CB-4796
>                 URL: https://issues.apache.org/jira/browse/CB-4796
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin File Transfer
>    Affects Versions: 3.0.0
>            Reporter: Christoph Pojer
>
> File Transfer Upload progress has stopped working as of version 3.0.0. I 
> suspect it has something to do with sending the JS from a different Thread as 
> we are also experiencing issues with the DOM not redrawing (although updating 
> just fine) with our custom media plugin (we send JS from a different thread, 
> see: 
> https://github.com/auphonic/cordova-plugin-media/blob/master/src/android/AudioPlayer.java#L125
>  ).
> Please let me know if these are two separate issues and if I should create a 
> separate issue for both but I strongly suspect that this has something to do 
> with each other..



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to