push 原理

本文详细介绍了iPhone Push通知的工作原理和技术细节。通过基于Jabber/XMPP协议的即时通讯方式,实现服务器与设备间的双向通信。重点讲解了设备令牌的重要性,包括请求令牌、更新令牌的过程,以及如何正确使用推送通知。
Iphone push 原理
[url]http://slj.me/2010/02/iphone-push-notification/[/url]
服务器和手机上跑着的都是基于Jabber/XMPP协议的类IM程序。手机加服务器为好友,而服务器加所有使用Push的手机为好友(数量一定非常惊人,所以稳定性是问题。这应该也是Push Notification反复跳票的原因。)。
[url]http://www.ifanr.com/3371[/url]


iphone push的文章:
[color=red][url]http://mobiforge.com/developing/story/programming-apple-push-notification-services[/url][/color]
[url]http://blog.boxedice.com/2009/07/10/how-to-build-an-apple-push-notification-provider-server-tutorial/[/url]
[url]http://blog.boxedice.com/2010/06/05/how-to-renew-your-apple-push-notification-push-ssl-certificate/[/url]
[url]http://www.iphone-geek.cn/%E7%BC%96%E7%A8%8B/%E6%80%8E%E6%A0%B7%E7%BC%96%E5%86%99apple-push-notification%E6%9C%8D%E5%8A%A1%E5%99%A8[/url]


iphone push的重点:
1、By requesting the device token and passing it to the provider every time your application launches, you help
to ensure that the provider has the current token for the device. If a user restores a backup to a device other
than the one that the backup was created for (for example, the user migrates data to a new device), he or
she must launch the application at least once for it to receive notifications again. If the user restores backup
data to a new device or reinstalls the operating system, the device token changes. [color=red]Moreover, never cache a
device token and give that to your provider; always get the token from the system whenever you need it[/color]. If
your application has previously registered, calling registerForRemoteNotificationTypes: results in
iOS passing the device token to the delegate immediately without incurring additional overhead.
2、Important: Because delivery is not guaranteed, you should not depend on the remote-notifications facility
for delivering critical data to an application via the payload. And never include sensitive data in the payload.
You should use it only to notify the user that new data is available.
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值