I'm a Java programmer who is working on an iPhone application. I'd like it to use Push Notification services.

I originally thought I could use Google App Engine to provide the payloads to Apple, but I see now that it won't be possible because App Engine doesn't support the low-level socket programming that is needed to communicate with Apple.

Are there any alternatives to Google App Engine that let me use Java?

In brief, I'm wondering if there is a free hosting platform that supports Java and Socket Programming

UPDATE - since writing this question I've written an app that uses Urban Airship to act as a middleman between GAE and APNS. It works just swell. There is an app engine issue on this - http://code.google.com/p/googleappengine/issues/detail?id=1164 if you'd like to follow, but personally I've decided that this isn't really something that GAE should be doing. Just use Urban Airship.

Comments

What features of GAE are you looking to replicate? There is nothing exactly like GAE, but there are shared hosting platforms.

Written by Rob Di Marco

I am slightly aware of other GAE features such as a non-relational database. I think the main goal though is to have free Java hosting with Socket programming. Some kind of persistence is required as well, whether it's like what Google offers or a MySQL db, or whatever.

Written by bpapa

I assume the key word here is "free". I don't know of any free Java hosting providers.

Written by Rob Di Marco

Accepted Answer

Urban Airship provide RESTful web services for sending iPhone push notifications. This cookbook example shows how to use it from GAE using Python; I assume this can be done in Java also.

Written by rupello
This page was build to provide you fast access to the question and the direct accepted answer.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki