You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Clemens Wyss DEV <cl...@mysign.ch> on 2012/09/21 12:22:14 UTC

FileReader#readAsTextFile on iOS 6 (Cordova 2 & 1.9)

When my app is initially started I download and save a file into the "local filesystem".
Then upon following launches of the app I try to read the file content through:
fileReader.readAsText( file )

Neither any of the callback-handlers is called nor an exception is thrown ...

Reproduceable with cordova 1.9 and cordova 2.0 on iOS 6 (and I guess, not sure though, on iOS 5.1.(x) ).

Note:
The file (in this case) is NOT huge (1K)

Regards
Clemens


Re: FileReader#readAsTextFile on iOS 6 (Cordova 2 & 1.9)

Posted by Michal Mocny <mm...@chromium.org>.
There is already a fix for this, though it would not have made it in until
cordova 2.1.

See
https://github.com/apache/incubator-cordova-js/commit/ae6959dc320e3a82b5d721fe04429d307cbabcb0if
you would like to cherry pick back into your versions.

Let me know if this still happens with 2.1+


On Fri, Sep 21, 2012 at 6:22 AM, Clemens Wyss DEV <cl...@mysign.ch>wrote:

> When my app is initially started I download and save a file into the
> "local filesystem".
> Then upon following launches of the app I try to read the file content
> through:
> fileReader.readAsText( file )
>
> Neither any of the callback-handlers is called nor an exception is thrown
> ...
>
> Reproduceable with cordova 1.9 and cordova 2.0 on iOS 6 (and I guess, not
> sure though, on iOS 5.1.(x) ).
>
> Note:
> The file (in this case) is NOT huge (1K)
>
> Regards
> Clemens
>
>