iOS push机制理解
来源:互联网 发布:上海公司注册网络平台 编辑:程序博客网 时间:2024/05/21 04:09
以下文章根据iOS原文理解所得:https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html
一、push传播前的一些认证
苹果APNS(Apple Push Notification Service)在push推送前进行Security Architecture,主要包含connection trust和token trust。
1、connection trust分为device-to-service和provider-to-service,两者连接方式类似,例如device-to-service为device发起TLS连接,APNS返回服务器证书,device认证后返回给APNS,APNS确认后建立TLS连接。
如图:
2、token trust:设备系统发起请求,APNS产生包含设备唯一信息的设备令牌,并加密后传给device,device把device token作为一个NSData对象传给app,app再传给provider
二、push内容
push主要包含device token 和payload,其中payload:pas[alert(title、body、title-lox-key、title-loc-args、action-lox-key、loc-key、launch-image)、badge、sound]
alert:An alert message to display to the user
badge:A number to badge the app icon with
sound:A sound to play
三、一条push(device token +payload)消息从生产到手机端收到的过程
- iOS push机制理解
- ios push机制
- 关于iOS push一些问题的理解
- Push机制
- iOS消息推送机制详解(Push Notify - APNS)
- iOS runTime机制简单理解
- ios签名机制的理解
- IOS push
- IOS push
- iOS push
- iOS push
- ios--push
- Push注册机制介绍
- Push注册机制介绍
- Push注册机制
- apple push notification 机制
- iphone push机制
- Push机制流程详解
- Demo获取draw text 时的宽度的方法
- 【精】手把手教你用小米盒子播放台式机里的照片和视频
- POI导出Excel实例
- Autolayout使用小结(一)
- 图像语义理解
- iOS push机制理解
- Objective-C相关Category的收集
- HDU 1576-A/B(拓展欧几里得算法)
- MyEclipse 安装反编译插件
- iOS开发的一些技巧
- Javascript中call,apply,bind三个函数的用法
- Vijos P1028魔族密码
- 资源包 AssetBundles
- Download模块 (十二)