下载此文档

iphone消息推送机制实现与探讨.pdf


文档分类:IT计算机 | 页数:约15页 举报非法文档有奖
1/15
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/15 下载此文档
文档列表 文档介绍
: .
iPhoctionary
*)launchOptions
{
=
;
[ makeKeyAndVisible];
//
Let the device know we want to receive push
notifications
[[UIApplication sharedApplication]
registerForRemoteNotificationTypes:
UIRemoteNotificationTypeBadge |
UIRemoteNotificationTypeSound |
UIRemoteNotificationTypeAlert)];
return
YES;
}
通过 registerForRemoteNotificationTypes 方法,告诉应用程序,能接受 push 来的通知。 : .
iPhone 消息推送机制实现与探讨
Push 的原理:
Push 的工作机制可以简单的概括为下图
图中,Provider 是指某个 iPhone 软件的 Push 服务器, 作为 Provider。
APNS 是 Apple Push Notification Service(Apple Push 服务器)的缩写,是苹果的服务器。
上图可以分为三个阶段。
第一阶段:.net 应用程序把要发送的消息、目的 iPhone 的标识打包,发给 APNS。
第二阶段:APNS 在自身的已注册 Push 服务的 iPhone 列表中,查找有相应标识的 iPhone,并把
消息发到 iPhone。
第三阶段:iPhone 把发来的消息传递给相应的应用程序, 并且按照设定弹出 Push 通知。 : .
iPhone 消息推送机制实现与探讨
Push 的原理:
Push 的工作机制可以简单的概括为下图
图中,Provider 是指某个 iPhone 软件的 Push 服务器, 作为 Provider。
APNS 是 Apple Push Notification Service(Apple Push 服务器)的缩写,是苹果的服务器。
上图可以分为三个阶段。
第一阶段:.net 应用程序把要发送的消息、目的 iPhone 的标识打包,发给 APNS。
第二阶段:APNS 在自身的已注册 Push 服务的 iPhone 列表中,查找有相应标识的

iphone消息推送机制实现与探讨 来自淘豆网www.taodocs.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数15
  • 收藏数0 收藏
  • 顶次数0
  • 上传人学习好资料
  • 文件大小579 KB
  • 时间2022-02-06