Please can anyone help and advise how to force the filetransfer download to run on a separate thread in the background - I believe the file upload already does this. Currently we download multiple audio and video files (to allow offline playback) - but during download the UI becomes so unresponsive that the app is unusable even with simple user interaction (ie. no buttons work, no scrolling etc … just as though app has hung).
Although in Cordova 2.9.1 the UI slowed down whilst downloading files …. upgrading to 3.4 has actually made it far worse and not possible to even use any more.
Whilst debugging there are continous warning messages about File and FileTransfer need to use background thread (I understand these are just warnings) …. but as the File plugin is a 'Core' plugin … I would have thought that there was a way to therefore force these plugin methods to use a background thread …. when you have multiple file processing (checking existing files exist, downloading files etc.) the UI just can't cope and freezes completely until even a single download has finished ….. this was not the case with Cordova 2.9.1 which just slowed down. Therefore that is why I think that there is a setting, parameter, option that I can use or pass to the new FileTransfer() method ….. I just can't find it !!
THREAD WARNING: ['File'] took '22.145020' ms. Plugin should use a background thread.
THREAD WARNING: ['FileTransfer'] took '14.762207' ms. Plugin should use a background thread.
I can not see any options or parameters to set to force this as a background process - although would have thought that this was an obvious candidate for such a type of task … so any help would be greatly appleciated.
Many thanks to anyone who can help with this.