incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Maj (JIRA)" <>
Subject [jira] [Resolved] (CB-552) Cordova breaks GWT boot mechanism - device ready will not fire
Date Sun, 22 Apr 2012 02:34:34 GMT


Filip Maj resolved CB-552.

       Resolution: Fixed
    Fix Version/s: 1.7.0

Verified that the issue exists in 1.6.1 on a Galaxy Nexus running Android 4.0.2.

However, when I pulled in the [latest master for Cordova-JS as of commit 194c77|;a=commit;h=194c7743b42847f9e56cb1958462624393bd8209],
rebuilt the JavaScript and re-deployed, I could no longer reproduce the issue. I am thinking
that the fix for CB-499 also fixes this issue. This issue was related to how require.js dynamically
created script tags, which would mess with how the DOMContentLoaded event was fired on the
document.  Because cordova.js attached to DOMContentLoaded very late, it messed up the way
the deviceready event got fired.

@Daniel: can you try cloning the incubator-cordova-js repository, building the latest master,
replacing your project's cordova.js with the newly-built cordova.js file for the platforms
you are seeing the issue on, re-testing and letting me know how it goes?
> Cordova breaks GWT boot mechanism - device ready will not fire
> --------------------------------------------------------------
>                 Key: CB-552
>                 URL:
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: CordovaJS
>    Affects Versions: 1.5.0, 1.6.0, 1.6.1
>         Environment: Cordova apps written with GWT (Google Web Toolkit) do not work with
the new cordova releases.
>            Reporter: Daniel Kurka
>            Assignee: Filip Maj
>             Fix For: 1.7.0
>         Attachments: big.js, index.html
> When GWT is using a so called xsiframe linker the source code of the app is loaded by
a small script to select the appropriate javascript file.
> This mechanism used to work fine with all versions before 1.5
> I have created a small example (no real GWT app) to show the issue.
> The code creates a script element and appends it to the head of the document (as GWT
would do in a normal bootup). After appending the script element no more cordova events seem
to fire.
> The index.html contains the "bootup code" and the big.js file would contain the gwt app.

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