You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Shazron Abdullah (Updated) (JIRA)" <ji...@apache.org> on 2012/04/07 00:14:17 UTC
[jira] [Updated] (CB-442) FileTransfer download should not block
the UI
[ https://issues.apache.org/jira/browse/CB-442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah updated CB-442:
--------------------------------
Attachment: CB-442-test.html
Tested with the attached file, works great. Had a timer updating a counter every 300ms, and a WebKit animation spinning a box triggered by a user, all while an 80MB (MySQL) file was downloading.
> FileTransfer download should not block the UI
> ---------------------------------------------
>
> Key: CB-442
> URL: https://issues.apache.org/jira/browse/CB-442
> Project: Apache Callback
> Issue Type: Bug
> Components: iOS
> Affects Versions: Master
> Reporter: Shazron Abdullah
> Assignee: Shazron Abdullah
> Attachments: CB-442-test.html
>
>
> Right now the way it downloads items, it blocks the UI:
> https://github.com/apache/incubator-cordova-ios/blob/master/CordovaLib/Classes/CDVFileTransfer.m#L167
> NSData dataWithContentsOfUrl:
> https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSData_Class/Reference/Reference.html
> Change to an async download method.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira