iphone - 是否可以在 Google App Engine 应用程序中实现 iPhone 推送通知?

标签 iphone google-app-engine push-notification apple-push-notifications

我正处于 iPhone 应用程序的规划阶段,正在考虑使用 Google App Engine用于我的服务器组件,因为它具有可扩展性。

推送通知使用二进制接口(interface)发送到 gateway.push.apple.com:2195

但是,服务器的 JRE 只允许使用 following standard classes ,其中不包括 Socket 类。 URLConnection 能否以某种方式用于执行此操作?

鉴于 Google App Engine 应用程序的限制,有没有办法实现推送通知?

我想避免使用第三方服务,例如 AppNotifyUrbanAirship如果可能的话。

最佳答案

没有。 Google App Engine 禁止 native 套接字连接。您要么需要使用第三方服务(如您提到的服务),要么需要另一个专用服务器来发送通知。

编辑:请注意,GAE 对套接字和传出调用的限制不仅仅是库限制。 Google 服务器实际上会阻止所有出站网络连接;他们只允许 HTTP 请求通过 URL Fetching 服务器。

喜欢可以star Issue 1164: Add Support for Apple Push Notification Service .

关于iphone - 是否可以在 Google App Engine 应用程序中实现 iPhone 推送通知?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1811439/

相关文章:

iphone - 使用Instruments iphone sdk运行应用程序时意外退出

node.js - 是什么导致 "MongoError: no mongos proxy available at Timeout"?

java - Google 电子表格中的 appengine 问题

java - 自动扩展后端 - Appengine Java

ios - 推送 iOS 应用程序的良好做法?

iphone - 新手: UINavigationController is pulling me back from further learning :(

iphone - 旧图像在 iOS 应用程序中替换为新图像后显示

ios - UIScrollView 无法滚动?

android - 使用 Phonegap PushPlugin 在后台和推送通知到达时不会打开应用程序

ios - 在iOS中安排本地通知/不定期的时间间隔