Enviar pesquisa
Carregar
构建稳健的iOS推送服务
•
17 gostaram
•
2,217 visualizações
jeff kit
Seguir
iOS的推送服务介绍,及最佳实践。
Leia menos
Leia mais
Tecnologia
Diversão e humor
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 44
Baixar agora
Baixar para ler offline
Recomendados
给Geek们的音乐课
给Geek们的音乐课
jeff kit
冲浪 Object-c
冲浪 Object-c
jeff kit
Taste Rabbitmq
Taste Rabbitmq
jeff kit
REST is not enough: Using Push Notifications to better support your mobile cl...
REST is not enough: Using Push Notifications to better support your mobile cl...
Juan Gomez
OWD - Push Notification Server Architecture [DEVCON1_2012]
OWD - Push Notification Server Architecture [DEVCON1_2012]
Fernando Sela
漫游iOS开发指南
漫游iOS开发指南
jeff kit
Presentation on CBO’s Projections of the Costs of U.S. Nuclear Forces, 2014 t...
Presentation on CBO’s Projections of the Costs of U.S. Nuclear Forces, 2014 t...
Congressional Budget Office
Scala jeff
Scala jeff
jeff kit
Recomendados
给Geek们的音乐课
给Geek们的音乐课
jeff kit
冲浪 Object-c
冲浪 Object-c
jeff kit
Taste Rabbitmq
Taste Rabbitmq
jeff kit
REST is not enough: Using Push Notifications to better support your mobile cl...
REST is not enough: Using Push Notifications to better support your mobile cl...
Juan Gomez
OWD - Push Notification Server Architecture [DEVCON1_2012]
OWD - Push Notification Server Architecture [DEVCON1_2012]
Fernando Sela
漫游iOS开发指南
漫游iOS开发指南
jeff kit
Presentation on CBO’s Projections of the Costs of U.S. Nuclear Forces, 2014 t...
Presentation on CBO’s Projections of the Costs of U.S. Nuclear Forces, 2014 t...
Congressional Budget Office
Scala jeff
Scala jeff
jeff kit
原创音乐会
原创音乐会
jeff kit
杯具是怎样练成的
杯具是怎样练成的
jeff kit
Bi
Bi
jeff kit
Git
Git
jeff kit
Autoforms
Autoforms
jeff kit
Brief intro of Dropbox
Brief intro of Dropbox
jeff kit
Mais conteúdo relacionado
Mais de jeff kit
原创音乐会
原创音乐会
jeff kit
杯具是怎样练成的
杯具是怎样练成的
jeff kit
Bi
Bi
jeff kit
Git
Git
jeff kit
Autoforms
Autoforms
jeff kit
Brief intro of Dropbox
Brief intro of Dropbox
jeff kit
Mais de jeff kit
(6)
原创音乐会
原创音乐会
杯具是怎样练成的
杯具是怎样练成的
Bi
Bi
Git
Git
Autoforms
Autoforms
Brief intro of Dropbox
Brief intro of Dropbox
构建稳健的iOS推送服务
1.
Meet Push Notification
搭建稳健的iOS推送服务 12年3月24日星期六
2.
About Me
• @jeff_kit • 新晋奶爸 • M%*技术+N%*产品 • 图睿信息Co-Founder • 珠三角技术沙龙组委 12年3月24日星期六
3.
点歌台
⼀一起 速推 12年3月24日星期六
4.
大纲
• 认识推送 • 理解推送 • 推送最佳实践 • 吐糟 12年3月24日星期六
5.
认识推送 12年3月24日星期六
6.
12年3月24日星期六
7.
12年3月24日星期六
8.
12年3月24日星期六
9.
12年3月24日星期六
10.
12年3月24日星期六
11.
理解推送 12年3月24日星期六
12.
12年3月24日星期六
13.
XMPP 12年3月24日星期六
14.
XMPP
NSNotificationCenter 12年3月24日星期六
15.
XMPP
APS NSNotificationCenter 12年3月24日星期六
16.
12年3月24日星期六
17.
12年3月24日星期六
18.
12年3月24日星期六
19.
推送凭证--Token 12年3月24日星期六
20.
12年3月24日星期六
21.
推送工作流程 12年3月24日星期六
22.
推送工作流程 12年3月24日星期六
23.
Payload
{ "aps" : { "alert" : "You got your emails.", "badge" : 9, "sound" : "default" }, "acme1" : "bar", "acme2" : 42 } 12年3月24日星期六
24.
sample code
from apns import APNs, Payload apns = APNs(use_sandbox=True, cert_file='cert.pem', key_file='key.pem') # Send a notification token_hex = 'my_device_token' payload = Payload(alert="Hello World!", sound="default", badge=1) apns.gateway_server.send_notification(token_hex, payload) 12年3月24日星期六
25.
APS Protocol 12年3月24日星期六
26.
APS Protocol 12年3月24日星期六
27.
APS Protocol 12年3月24日星期六
28.
APS Protocol 12年3月24日星期六
29.
APS Protocol 12年3月24日星期六
30.
对比Android推送
• 唯⼀一实现 VS 各自为政 • 统⼀一 VS 混乱 • 节省 VS 浪费资源 • 可靠 VS 不稳定 12年3月24日星期六
31.
推送最佳实践 12年3月24日星期六
32.
APNS 12年3月24日星期六
33.
APNS 12年3月24日星期六
34.
APNS 12年3月24日星期六
35.
APNS 12年3月24日星期六
36.
APNS-Agent
• 约定胜于配置 • 兼容测试环境 • 使用队列加快响应时间 • 重用APNS Socket • Design for Failure • 监控 12年3月24日星期六
37.
自描述目录结构 12年3月24日星期六
38.
APNS
APNS-Agent apps 12年3月24日星期六
39.
APNS
APNS-Agent apps 12年3月24日星期六
40.
sample code
from apnsagent.client import PushClient client = PushClient(‘com.toraysoft.alert’) client.push(token,alert,badge,sound,custom) fork from: https://github.com/jeffkit/PyAPNs 12年3月24日星期六
41.
12年3月24日星期六
42.
吐糟 12年3月24日星期六
43.
12年3月24日星期六
44.
Q&A 12年3月24日星期六
Baixar agora