cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Gauthier <>
Subject Re: File plugin threading on iOS
Date Tue, 10 Dec 2013 21:40:20 GMT
I quickly updated the File plugin to do the local file uri stuff in 
resolveLocalFileSystemURI in the background using [self.commandDelegate 

It works and allows my app interface to respond while the FS calls are 
resolving. Is this approach crazy or obviously broken in some way?


On 10/12/13 12:57 PM, Ian Clelland wrote:
> Unfortunately, except in a few cases (accessing asset-library urls and
> actually reading and writing files) it is blocking.
> Creating, finding, deleting and renaming regular files are all currently
> synchronous operations on iOS. Reading and writing contents are async, and
> shouldn't block anything.
> Once I've pushed up the last changes to the File plugin, it's on my list of
> things to tackle.
> Ian
> On Tue, Dec 10, 2013 at 11:45 AM, Michael Gauthier <>wrote:
>> When using the File plugin on iOS I get a lot of "THREAD WARNING Plugin
>> should use a background thread" messages. Is the iOS plugin actually using
>> blocking filesystem calls internally?
>> Cheers,
>> Mike

View raw message