Comments (5)
the file to be patched is PhoneGap.gwt.xml
Original comment by [email protected]
on 11 Oct 2011 at 11:56
from gwt-phonegap.
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.
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.
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.
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)
- Patch for /src/main/java/com/googlecode/gwtphonegap/client/globalization/js/LanguageJsImpl.java HOT 4
- "readAsBinaryString()" and "readAsArrayBuffer()" not yet supported HOT 1
- Module Camera : MediaType isn't working HOT 1
- ConnectionMobileImpl deprecated method call navigator.network.connection HOT 3
- Memory leak while detecting network connection. HOT 2
- Not compatible with Phonegap 3.0 HOT 6
- Project page displays wrong Phonegap and GWT versions HOT 1
- PhoneGapStandardImpl fails in Internet Explorer 8 (IE8)
- issue on ipad when mailto special character
- onPhoneGapAvailable() never called when upgraded to PG 3.3 HOT 2
- create FileWriter with the append flag HOT 1
- FileReader#readAs* methods should accept File instead of FileEntry HOT 5
- gwt-phonegap 3.5 downloads not available in downloads on http://code.google.com/p/gwt-phonegap
- Add a direct install linker to enable nativ calls at startup
- Support several options available while opening an InApp browser HOT 1
- gwt-phonegap to detect missing plugins and handle error nicely HOT 2
- MainResourceHolder moved Package, ShowMasterEvent no longer exists, POM needs updating, Annotation errors
- misspelling in FileTransferJsImpl leads to broken (unset) headers HOT 1
- resolveLocalFileSystemURI is deprecated. Please call resolveLocalFileSystemURL instead. HOT 1
- Add support for Cordova 4.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwt-phonegap.