We are developing an appliation (client+server) using GWT and hosted in GAE. Now we want to implement a mobile app (GWT + phonegap) that will connect to the server part of the application. I would like to use the same entities, DTOs and client service interfaces in the client that we used in the web page.
Is that possible? If I execute a RPC with the phonegap page as a webpage I get a 0 error (I suppose it is about crossdomain issues), but if I execute in the android emulator I get a “Failed to get the SerializationPolicy” exception.
I want to know if I can do what I want and work with both the page as page for debugging and in the emulator.
If this is very difficult, how could I reuse the old code? or… which is the best way to go in my situation (gwt app (client+server) with a mobile phonegap page connected to the same server in GAE)?
Thanks
I wrote a blog entry on how to use GWT RPC and phonegap together: http://blog.daniel-kurka.de/2012/04/gwt-rpc-with-phonegap-revisited.html