GithubHelp home page GithubHelp logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 14, 2024
the file to be patched is PhoneGap.gwt.xml

Original comment by [email protected] on 11 Oct 2011 at 11:56

from gwt-phonegap.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 14, 2024
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 [email protected] on 11 Oct 2011 at 12:10

  • Changed state: WontFix

from gwt-phonegap.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 14, 2024
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 [email protected] on 11 Oct 2011 at 1:09

from gwt-phonegap.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 14, 2024
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 [email protected] on 11 Oct 2011 at 2:34

from gwt-phonegap.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 14, 2024
Could you give a hint where phongap/cordova enforces this kind of security and 
how to disable it?

Original comment by [email protected] on 21 May 2012 at 10:02

from gwt-phonegap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.