You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Justin Bradford (JIRA)" <ji...@apache.org> on 2013/02/08 20:37:12 UTC

[jira] [Commented] (CB-2389) Intermittent problems with FileTransfer download

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

Justin Bradford commented on CB-2389:
-------------------------------------

I've figured out the problem:

A separate bit of my code was adding an iframe to the document at roughly the same time. When the iframe loads, it triggers a WebView navigate event, which resets all Cordova plugins. CDVFileTransfer.m#onReset cancels all active downloads, but does not fire the error callbacks in Javascript.

The #onReset behavior is completely reasonable if the event were for the main WebView, but in the case of iframe events, I don't believe it is.
                
> Intermittent problems with FileTransfer download 
> -------------------------------------------------
>
>                 Key: CB-2389
>                 URL: https://issues.apache.org/jira/browse/CB-2389
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.3.0
>            Reporter: Justin Bradford
>            Assignee: Shazron Abdullah
>
> I'm seeing an intermittent issue where a FileTransfer download appears to do nothing at all. The file never downloads, the call returns without error, and neither the success or error callbacks are ever invoked. Additionally, the onprogress function on the FileTransfer instance is never called.
> I've seen this problem on iOS (simulator and device), but I have not tried other devices yet.
> I haven't been able to reduce it a clean testcase, but so far, the only pattern I've seen is that it only occurs when I request the download very shortly after creating a directory.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira