You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/08/19 09:25:23 UTC

[GitHub] [cordova-plugin-file-transfer] elvisgraho edited a comment on issue #260: Timeouts after downloading a lot of files (iOS)

elvisgraho edited a comment on issue #260:
URL: https://github.com/apache/cordova-plugin-file-transfer/issues/260#issuecomment-676018520


   @nunohorta No. One download after another. _"*Note that my JS code explicitly waits for [self.command.commandDelegate sendPluginResult:result callbackId:callbackId]; before sending next request."_
   
   "Background task X, was created over 30 seconds ago" issue is fixable when you remove the concurrency in the Objective-C request code. 
   
   After that I'v got further Problems that are deeply rooted in iOS and deprecated HTTP client functions that are used in this plugin. The issue is that "[connection cancel];" does not actually cancel the connection. It is an asynchronous process that tells the low-level code to perform a cleanup. Once the cache gets full, it gets stuck.
   
   What fixed the issue for me is: 
   1. Ditch this plugin
   2. Use HTTP from @ionic-native/http (You can download files with it.)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org