Closed GoogleCodeExporter closed 9 years ago
the file to be patched is PhoneGap.gwt.xml
Original comment by stbl...@gmail.com
on 11 Oct 2011 at 11:56
phonegap requires to loads the html file containing your app with file://, so
phonegap env. is only true on devices. This is as intended
Original comment by kurka.da...@gmail.com
on 11 Oct 2011 at 12:10
In my case, a I have a webapp written in Java, with static GWT Javascript and
dynamic RPC Servlet, my iPhone PhoneGap application don't call an embedded
static HTML file but the remote URL of my webapp, so URL nether contains
"file://" but "http://" or "https://".
Extract of Objective-C code :
@interface MyGwtWebappPhoneGapAppDelegate : PhoneGapDelegate {
}
@end
@implementation MyGwtWebappPhoneGapAppDelegate
// override PhoneGapDelegate.startPage()
+ (NSString*) startPage
{
return @"http://<myhost>/<mywebapp>/myGwtModule.html";
}
@end
(sorry for my poor english, I'am french)
Original comment by stbl...@gmail.com
on 11 Oct 2011 at 1:09
If this would work, it would be a very big security hole for your app (changing
the remote html file would open the device for all sorts of attacks). This is
why phonegap does not allow to use phonegap features if they are called from a
remote url. In this way this would not make any sense for gwt-phonegap to patch
this, because phonegap would`t allow us to work.
(http://groups.google.com/group/phonegap/browse_thread/thread/806d4fd2747ba4cd/9
f2e21a942f74a21?lnk=gst&q=remote+html+file#9f2e21a942f74a21)
If you are trying to get gwt rpc working with phonegap take a look at my
blogpost: http://blog.daniel-kurka.de/2011/01/gwt-rpc-with-phonegap.html
Original comment by kurka.da...@gmail.com
on 11 Oct 2011 at 2:34
Could you give a hint where phongap/cordova enforces this kind of security and
how to disable it?
Original comment by robert.d...@gmail.com
on 21 May 2012 at 10:02
Original issue reported on code.google.com by
stbl...@gmail.com
on 11 Oct 2011 at 11:48