gwtmobile as pluggable between mobile and webapp...

58 views
Skip to first unread message

golfdude

unread,
Mar 19, 2012, 8:18:50 AM3/19/12
to gwtm...@googlegroups.com

So I have created an app which works on android and iphone. I dont see why I should not use this as a webapp also. Issue is phonegap code is now all over my code. I wish
I had designed ground up ( using a factory and some state patterns ) to make mobile specific code as pluggable. But I wish gwtmobile itself be so. Because that way any
app written using gwtmobile is also a webapp. And this helps gwtmobile in 2 ways - testing will be faster, and gwtmobile can plug into other frameworks besides phonegap.

Thoughts, Dennis.

gd

Dennis Z Jiang

unread,
Mar 19, 2012, 2:43:26 PM3/19/12
to GWT Mobile
Thanks golfdude. That is good suggestion. If you also have sample code
or actual code that shows how that can be done, I will be happy to
see.

golfdude

unread,
Mar 24, 2012, 1:48:19 AM3/24/12
to gwtm...@googlegroups.com

Dennis,

I have implemented a package for my app and I have got my webapp and mobile working with same code base. I will send it over once I finish testing it and making it into a separate package. 

Thanks

gd

Phil Miller

unread,
Mar 24, 2012, 6:32:27 AM3/24/12
to gwtm...@googlegroups.com
I'd be interested to see this too - been thinking through the same thing myself.

jogo

unread,
Jan 21, 2013, 12:19:56 PM1/21/13
to gwtm...@googlegroups.com
That is definitely doable. I have some working prototypes that work on Android & iOS as well as when sitting on a url.

The only problem is single origin policy. If your app downloads from a domain, although it can grab data from another domain (I tested JSONP requests on some Google APIs), but you won't be able to send data anywhere else except to the same domain.
Reply all
Reply to author
Forward
0 new messages