用于开发iPhone推送通知服务的Google App Engine的Java替代品是什么? [英] What's a Java alternative to Google App Engine for developing iPhone Push Notification services?

查看:143
本文介绍了用于开发iPhone推送通知服务的Google App Engine的Java替代品是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名正在开发iPhone应用程序的Java程序员。我希望它使用推送通知服务。

我原本以为我可以使用Google App Engine将有效载荷提供给Apple,但现在我发现它不可行,因为App Engine不支持需要与Apple进行通信的低级套接字编程。

Google App Engine有什么替代方案可以让我使用Java吗?简单地说,我想知道是否有一个支持Java和Socket编程的免费托管平台。



更新 - 自写这个问题以来,我写了一个应用程序,它使用Urban Airship作为GAE和APNS之间的中间人。它工作只是膨胀。这是一个应用程序引擎问题 - http://code.google .com / p / googleappengine / issues / detail?id = 1164 如果你想关注,但是我个人认为这不是GAE应该做的事情。只需使用Urban Airship即可。

解决方案

Urban Airship 提供用于发送iPhone推送通知的RESTful Web服务。 这个食谱示例展示了如何使用Python从GAE中使用它;我认为这也可以用Java来完成。


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.

解决方案

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.

这篇关于用于开发iPhone推送通知服务的Google App Engine的Java替代品是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆