You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Andrew Grieve (JIRA)" <ji...@apache.org> on 2014/10/14 22:45:34 UTC
[jira] [Resolved] (CB-7735) Callbacks not being executed when
calling requestFileSystem
[ https://issues.apache.org/jira/browse/CB-7735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Grieve resolved CB-7735.
-------------------------------
Resolution: Fixed
Fixed in 3.7.0-dev.
Thanks Christophe! Helped a tonne! Seems the code that detects for the bridge iframe being removed from the body had a race condition. You could work around this for now by not setting innerHTML of the <body> tag. The fix will be in the next iOS release though.
> Callbacks not being executed when calling requestFileSystem
> -----------------------------------------------------------
>
> Key: CB-7735
> URL: https://issues.apache.org/jira/browse/CB-7735
> Project: Apache Cordova
> Issue Type: Bug
> Components: CordovaJS
> Affects Versions: 3.7.0
> Environment: iOS
> Reporter: Christophe Benoit
> Labels: bridge, callback, filesystem
> Attachments: filesystem-issue.zip
>
>
> When calling window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, success, error) none of the callback functions are executed.
> Several calls to window.requestFileSystem are made during the initialization of the application, after the deviceready event. All those calls are being queued in the command queue.
> If I set the bridge mode to XHR_NO_PAYLOAD in the deviceready handler with following call, cordova.exec.setJsToNativeBridgeMode(cordova.exec.jsToNativeModes.XHR_NO_PAYLOAD), the callbacks are executed as expected and my application is beinig initialized.
> If I change the bridge mode back to IFRAME_NAV when the first view is rendered, any following calls to requestFileSystem are being handled as expected.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org