On Monday, April 8, 2013 9:02:55 AM UTC-5, Mary wrote:
>
> So I have a java web application on GAE with a datastore. There is also a 
> mobile application for android that takes and writes data on the datastore 
> through json and servlet, and the data model is written in java (there is a 
> conversion of data and a synchronization with the datastore and not a 
> direct access from this app). Now I want to write a new application with 
> phonegap to have an android-ios-windows application, but now the data model 
> is completely in javascript. So I don't know how share datasore between web 
> and mobile application. 
>
>
 To be clear, you already have an Android app that writes to GAE via JSON, 
and now you want to port it to iOS (Obj-C) and Windows Phone (VB.Net/C#)? 
Wolfram is correct, you shouldn't even need to write any code. The fact 
that the PhoneGap data model is Javascript is not a blocking issue, 
Javascript can write to JSON, and you can use cross domain requests/JSONP 
to transfer it to your web application. Here's some sample code to get you 
started: 
http://simonmacdonald.blogspot.com/2011/12/on-third-day-of-phonegapping-getting.html

One last thing: Make sure your server is setting the 
Access-Control-Allow-Origin header to * (just an asterisk), otherwise XHR 
won't work.


-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

@GOV on AppDotNet: https://alpha.app.net/gov

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to