incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kurka (JIRA)" <>
Subject [jira] [Commented] (CB-588) Cordova breaks Events for GWT Apps
Date Thu, 26 Apr 2012 21:30:49 GMT


Daniel Kurka commented on CB-588:

So far I have tested this with android and iOS, (stripping down was done on iOS) I suspect
this to be global.

There is one old way (which has many problems), which dumps the GWT app in the main html file,
by using this you can avoid this weirdness. (But with this setting you can not develop your
app because your tools won`t work). So this is a very temporary workaround.

Actually I got one more issue when switching from Phonegap 1.4 with the contacts API, but
I haven`t had the time yet to boil that down.
> Cordova breaks Events for GWT Apps
> ----------------------------------
>                 Key: CB-588
>                 URL:
>             Project: Apache Callback
>          Issue Type: Bug
>    Affects Versions: 1.5.0, 1.6.0, 1.6.1
>            Reporter: Daniel Kurka
>         Attachments:
> GWT Apps (Google Web Toolkit) use several different mechanism for loading their compiled
> Most of the times the code is loaded into a hidden iframe for separation with the main
> In the past this was no issue, but it seems that the transition to requireJS introduced
some problems.
> For some reason cordova is unable to call functions that are dynamically defined in that
> I had a hard time boiling this down because there is a lot of code generated by GWT.
I will attach a simple demo project which consists of the generated boot script, which will
load a html file (which will contain the app code) into a hidden iframe.
> The only thing the GWT App does is to register for the resume event, the callback is
added to the resume channel correctly. The problem is when the channel fires.
> The fire method of Channel fails to recognize the gwt function as instances of Functions.
Trying to call it manually results in no events firing at all....
> I`ll be happy to provide more information as needed, this one has already taken me quite
a while.

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