how to use the goole app engine as backend for the iphone application

184 views
Skip to first unread message

Shilendra Sharma

unread,
Sep 3, 2012, 12:30:21 AM9/3/12
to google-a...@googlegroups.com
Hi everyone

I have an iPhone application and want to use the Google app engine services( datastore , Google cloud storage and more ) as back end for iPhone application , so how it possible please guide me or suggest me,

App Shilendra

Johan Euphrosine

unread,
Sep 3, 2012, 5:13:47 AM9/3/12
to google-a...@googlegroups.com
HI Shilendra,

That would be a better question for stack overflow:
http://stackoverflow.com/questions/tagged/google-app-engine
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/3ngby-R0HBYJ.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengi...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.



--
Johan Euphrosine (proppy)
Developer Programs Engineer
Google Developer Relations

Shilendra Sharma

unread,
Sep 3, 2012, 5:16:25 AM9/3/12
to google-a...@googlegroups.com
Hi. Johan

you have no idea

Shilendra

Kristopher Giesing

unread,
Sep 3, 2012, 1:23:39 PM9/3/12
to google-a...@googlegroups.com
Actually this is such an open ended question that I think it's not particularly suited to SO.

Shilendra,

Generally speaking, you should be able to use GAE as a back end for an iPhone application.  I'm aiming to do this and although I have not yet deployed my app I've learned quite a bit about what does and doesn't work well.  There are some things to be aware of before going in.

- You'll probably want a different authentication mechanism than GAE gives you by default (unless you truly want your APIs to be public).  What I did was embed an application ID in my iPhone app, then check for it on the GAE side before returning responses.  I use HTTPS to avoid the application ID being sniffable on the network.
- The Channel APIs won't be available to you unless you are running an HTML5 application (e.g. through PhoneGap).  This is because the only client implementation for Channels is the JavaScript one.

There are also some things you should know that aren't specific to the client:

- Because of the distributed nature of GAE, you have no raw access to the file system, and no guarantees about the lifetime of in-memory structures.  You have the data store and memcached instead.  GAE strongly encourages stateless architectures.
- The GAE data store isn't a traditional database, and trying to treat it like one (e.g. by using JDO/JPA for your persistence framework) causes lots of headaches.  I'd recommend starting with Objectify instead, which was designed explicitly for GAE.
- The development environment is great, and very convenient... but in many ways it doesn't (and probably can't) mimic the behaviors of the production environment.  Design your app so you can test on an actual GAE deployment before your end users see it.

- Kris

Drake

unread,
Sep 3, 2012, 3:07:50 PM9/3/12
to google-a...@googlegroups.com

We do this.

 

You build a JSON API, and serve it to your iphone or other platform.

 

--

Shilendra Sharma

unread,
Sep 3, 2012, 3:53:59 PM9/3/12
to google-a...@googlegroups.com
you mean i use the JSON API for this and it will be solve

Regards & Thanks
Shilendra Sharma
+919891343808
shilen...@gmail.com
Reply all
Reply to author
Forward
0 new messages