incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon MacDonald (JIRA)" <>
Subject [jira] [Commented] (CB-1103) window.requestFileSystem is undefined on ICS TouchWiz devices.
Date Sun, 22 Jul 2012 02:55:34 GMT


Simon MacDonald commented on CB-1103:

Hey Stefan, 

The problem is actually in your code. Yes, you don't make a call to "utils.file.write()" until
you've received the "deviceready" event but the root cause of your issue is that you've already
parsed the files.js JavaScript and in doing so the variable util.files.requestFileSystem is
created and inside that function is where you do:

var requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem;

so at the point that files.js is parsed window.requestFileSystem has not been created by PhoneGap
yet which is why it gets set to window.webkitRequestFileSystem. You may want to hook the creation
of your utils class until "deviceready" is fired. 
> window.requestFileSystem is undefined on ICS TouchWiz devices.
> --------------------------------------------------------------
>                 Key: CB-1103
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.9.0
>         Environment: Any android devices running ICS and TouchWiz.
>            Reporter: Stefan Kendall
>            Assignee: Joe Bowser
>         Attachments:
> window.requestFileSystem is undefined after phonegap has loaded, which makes reading
and writing files impossible.
> window.webkitRequestFileSystem *is* defined, but attempting to use this method causes
a singal 11 application crash.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message