摘要: iPhone 对于应用程序在后台运行有诸多限制(除非你越狱)。因此,当用户切换到其他程序后,原先的程序无法保持运行状态。对于那些需要保持持续连接状态的应用程序(比如社区网络应用),将不能收到实时的信息。为解决这一限制,苹果推出了APNs(苹果推送通知服务)。APNs 允许设备与苹果的推送通知服务器保持常连接状态。当你想发送一个推送通知给某个用户的iPhone上的应用程序时,你可以使用 APNs 发送一个推送消息给目标设备上已安装的某个应用程序。本文中,你将学到创建使用 APNs 的iOS 应用的详细步骤。创建证书请求使用APNs 的第一步是生成一个证书请求,使用该证书请求来申请一个用于开发的 阅读全文
posted @ 2012-06-05 16:19 泪啸 阅读(492) 评论(0) 推荐(0) 编辑
摘要: The Apple Push Notification Service (APNS) was released way back in iOS 3.0. That was only just over a year ago but given the pace of development in the mobile OS market that now seems like ancient history. APNS was a first tentative attempt by Apple to address the demand for background processes. I 阅读全文
posted @ 2012-06-05 16:18 泪啸 阅读(1058) 评论(0) 推荐(0) 编辑