Google appengine authentication on iPhone web app on the home screen

Posted by Rakesh Pai on Stack Overflow See other posts from Stack Overflow or by Rakesh Pai
Published on 2010-04-10T08:41:29Z Indexed on 2010/04/10 8:43 UTC
Read the original article Hit count: 663

I'm using Google appengine for developing an web application that is meant to be used on both the browser and iphone. I have purchased a domain name for this application, so that I have a pretty URL. I've used the User API for authentication. This works just fine on desktop browsers and iPhone Safari.

The user could add the application to the home screen (by tapping the "+" at the bottom toolbar). However when that's done, it seems like the cookies set by Google are not in affect within this "application", and the user is effectively logged out. To make matters worse, when the user clicks on the login link (as generated by GAE), the app closes and opens safari to complete the login. Since the session is apparently not shared between the two, the login process is futile, and the "home-screen" version of the app continues to be logged out.

It seems that the cookies are not shared between a "home-screen" app and Safari. It also seems that the "home-screen" app will only work within it's own domain, and any redirect to any other domain will open Safari. Any idea how I can go about fixing this?

© Stack Overflow or respective owner

Related posts about google-app-engine

Related posts about iphone-web