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

Shawn Freyssonnet-Inder commented on CB-6905:
---------------------------------------------

I am also experiencing a similar problem.

In my case, the success callback does get fired when I provide correct 
parameters:
{code}
fileTransfer.download(
            'https://www.perdu.com'
            , 'cdvfile://localhost/persistent/perdu.html'
            , function (entry) {
                // This DOES get fired
                notify('download complete ' + entry.toURL())
            }
            , function (error) {
                notify('download error source ' + entry.source)
                notify('download error target ' + entry.target)
                notify('upload error code ' + entry.code)
            }
            , true)
{code}

but the error callback doesn't get fired when I provide incorrect parameters:
{code}
fileTransfer.download(
            'https://www.perdu.com'
            , 'perdu.html'
            , function (entry) {
                notify('download complete ' + entry.toURL())
            }
            , function (error) {
                // This does NOT get fired
                notify('download error source ' + entry.source)
                notify('download error target ' + entry.target)
                notify('upload error code ' + entry.code)
            }
            , true)
{code}

> success callback for file transfer download does not get called every on iOS
> ----------------------------------------------------------------------------
>
>                 Key: CB-6905
>                 URL: https://issues.apache.org/jira/browse/CB-6905
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS, Plugin File Transfer
>    Affects Versions: 3.5.0
>         Environment: iOS
>            Reporter: David Li
>
> When downloading a file through the file transfer plugin, the success 
> callback (and probably the error callback) functions never get executed upon 
> download completion. The progress callback function does behave normally 
> though.



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

Reply via email to