SlideShare a Scribd company logo
1 of 4
androidpn 作为 Android 推送方案存在的问题




如果百度或者 Google 搜索 “android 推送” 关键字,相当一部分文章都在说

到 androidpn。也可以看到有人说用起来了,有人在吐槽说不稳定、功能缺失,

维护工作量大。本文尝试对 androidpn 的前世今生做个汇总分析。


访问 androidpn 官方网站,我们可以了解到如下的基本信息:


  1. androidpn 全称是 Android Push Notification。

  2. 这是韩国人开源放在 sourceforge.net 上的一个开源项目,文档是韩文的。

  3. 最近的版本更新时间是 2010-11-05,也就是约二年之前。

  4. 来自中国的访问量,占其总访问量的 81%。请点击本链接再看当前的统

    计。


以上的基本信息表明,这不是一个很成熟的项目(貌似个人维护的),但是确有

大量的中国人有兴趣。


相信有不少同学知道为什么国人对 androidpn 这么感兴趣,这是国情啊:因为

Google 官方的 GCM(之前叫 C2DM)在国内使用不了。另外,国内之前又没

有可用好用的第三方推送服务。所以,大家不得已而为之:自己搞。从头开始?

工作量太大,太不 划算了。所以从开源的开始。而也恰好,开源项目里,明确

地为 Android Push 来生的,也就 androidpn 了。mqtt 里没有整合这么好可以

快速跑起来的。
但 androidpn 搭建起来后,情况如何呢?CSDN 上一个美女程序员的文

章 androidpn 推送初探 比较热。这篇文章里作者提出来几个问题:


    androidpn 服务器收到消息后如何知道要发给哪个用户?

    一旦服务器重启了,客户端似乎不会自动重连,需要用户自己中断后台

    Service 再重启应用。

    androidpn 服务器不保存消息。就是说它一有消息就会发出去,即使客户

    端根本不在线,它也不会重发。


作者赞在于,不只是满足于把环境搭建起来,而且针对业务需求做了思考。解析

下她提出的问题:


第一个问题相对简单,要去定制下用户体系,业务部分的用户体系需要与

androidpn 对应起来。


第二个问题,是个小细节,androidpn 客户端没有去做这些细节。


第三个问题,是最重要的。androidpn 背后的 Openfire, XMPP IM 服务器,
                                   是

消息内容是不会落地的,即只在内存里保存一下离线消息。如果要生产用,需要

考虑改造这里。


以下从 androidpn 的技术基础来个深入的剖析。


androidpn 是一个整合方案,它是基于 XMPP 开源组件的 。即服务器端基于

Openfire,客户端基于 Smack ,这二个是 XMPP 开源组件里最常见的两个。
androidpn 使用 Spring 框架做了个 Web 层,把 XMPP IM 组件集成起来,以实

现 Android Push 功能。因此,androidpn 的可用性来自于如下几个方面:


  1. 其依赖的 XMPP IM 协议与通讯机制,是否适合用于 Android Push 场景。

  2. 其是否为 Android Push 需求做了必要的定制。


第一个方面,XMPP 协议与开源组件。XMPP 是个成熟的 IM(即时通讯)协议,

基于 XML 文本方式实现,灵活强大。国外大多数聊天服务都是基于 XMPP 的,

比如:Gtalk,Facebook Chat,iMessage 等。正因为如此,所以 XMPP 的一些

开源组件可用性还不错,国内很多新兴的聊天工具刚开始完全基于 XMPP 开源

组件来开发,比 如米聊。


但是,以笔者曾经实现过移动聊天 App 的类似经历来说,XMPP 开源组件有其

问题,需要大范围改造:


  1. XMPP 协议复杂冗余,客户端费流量、费电;

  2. 开源的 XMPP 服务器(androidpn 选择的是 Openfire)单点容量有限,

    集群方案复杂、不成熟。


基于这些原因,并考虑到大范围改造技术上更不可控,所以笔者所在的团队刚开

始用 XMPP 开源方案,后来完全切到自己实现的技术方案上了。


第二个方面,Android Push 的需求场景,除了消息能够及时地推送到客户端,

还有什么其他的基本需求呢?这里试举两个例子:其一,确保消息能够到达。即

是否能有机制确保消息不 会丢失,不管什么原因。其二,向指定的一群人推送
消息。anroidpn 的基础 XMPP IM 组件是没有考虑这些的,需要做大量的定制改

造。


总结起来,使用 androidpn 可以简单地做到:把消息推送到客户端。但是,要使

其适合开发者需要,并在生产环境上运行,则可能需要做很多定制开发工作。从

笔者与多个开发者交流得到的反馈来看,在生产环境里运行起来问题很多。


上面说到,国内之前没有什么可用好用的第三方消息推送服务,所以大家不得不

自己去考虑搭建。最近国内有个第三方消息推送服务开放了,它是极光推送,普

通开发者可以随时注册帐号、下载 SDK 做集成,整个过程 3 分钟就可以完成。

关键在于,这个服务是免费的。

More Related Content

Recently uploaded

《段永平(投資的本質)》《段永平(投資的本質)》《段永平(投資的本質)》《段永平(投資的本質)》
《段永平(投資的本質)》《段永平(投資的本質)》《段永平(投資的本質)》《段永平(投資的本質)》《段永平(投資的本質)》《段永平(投資的本質)》《段永平(投資的本質)》《段永平(投資的本質)》
《段永平(投資的本質)》《段永平(投資的本質)》《段永平(投資的本質)》《段永平(投資的本質)》powerdd
 
IN Port Alfred [[[[WhatsApp (((+27632505360))) *____**)) ABORTION PILLS FOR S...
IN Port Alfred [[[[WhatsApp (((+27632505360))) *____**)) ABORTION PILLS FOR S...IN Port Alfred [[[[WhatsApp (((+27632505360))) *____**)) ABORTION PILLS FOR S...
IN Port Alfred [[[[WhatsApp (((+27632505360))) *____**)) ABORTION PILLS FOR S...schonejummy
 
Hi 00971552965071 ABORTION PILLS IN Marina Palm Jumeirah JVC
Hi 00971552965071 ABORTION PILLS IN Marina Palm Jumeirah JVCHi 00971552965071 ABORTION PILLS IN Marina Palm Jumeirah JVC
Hi 00971552965071 ABORTION PILLS IN Marina Palm Jumeirah JVCschonejummy
 
Kuwait City₩Kit【+971523788684】彡 ௹#Abortion Pills For sale In Kuwait City.
Kuwait City₩Kit【+971523788684】彡 ௹#Abortion Pills For sale In Kuwait City.Kuwait City₩Kit【+971523788684】彡 ௹#Abortion Pills For sale In Kuwait City.
Kuwait City₩Kit【+971523788684】彡 ௹#Abortion Pills For sale In Kuwait City.fionamali24
 
IN MUSCAT & OMAN 🏥[^(+968_76875161*))☎️)¥) LEGIT Cytotec Pills.
IN MUSCAT & OMAN 🏥[^(+968_76875161*))☎️)¥) LEGIT Cytotec Pills.IN MUSCAT & OMAN 🏥[^(+968_76875161*))☎️)¥) LEGIT Cytotec Pills.
IN MUSCAT & OMAN 🏥[^(+968_76875161*))☎️)¥) LEGIT Cytotec Pills.zuhaibhaideri99
 
Abortion in AL AIN*%UAE^*[☎️+971523788684**]]@ @# Abortion pills for sale in ...
Abortion in AL AIN*%UAE^*[☎️+971523788684**]]@ @# Abortion pills for sale in ...Abortion in AL AIN*%UAE^*[☎️+971523788684**]]@ @# Abortion pills for sale in ...
Abortion in AL AIN*%UAE^*[☎️+971523788684**]]@ @# Abortion pills for sale in ...fionamali24
 
Al Doha +971552965071 Abortion Pills in Doha Qatar Al Wakrah misoprostol/cyto...
Al Doha +971552965071 Abortion Pills in Doha Qatar Al Wakrah misoprostol/cyto...Al Doha +971552965071 Abortion Pills in Doha Qatar Al Wakrah misoprostol/cyto...
Al Doha +971552965071 Abortion Pills in Doha Qatar Al Wakrah misoprostol/cyto...schonejummy
 
Abortion Pills for sale in Ajman (UAE) ((+27.7377;58;557) Abortion Pills / Cy...
Abortion Pills for sale in Ajman (UAE) ((+27.7377;58;557) Abortion Pills / Cy...Abortion Pills for sale in Ajman (UAE) ((+27.7377;58;557) Abortion Pills / Cy...
Abortion Pills for sale in Ajman (UAE) ((+27.7377;58;557) Abortion Pills / Cy...daisycvs
 

Recently uploaded (8)

《段永平(投資的本質)》《段永平(投資的本質)》《段永平(投資的本質)》《段永平(投資的本質)》
《段永平(投資的本質)》《段永平(投資的本質)》《段永平(投資的本質)》《段永平(投資的本質)》《段永平(投資的本質)》《段永平(投資的本質)》《段永平(投資的本質)》《段永平(投資的本質)》
《段永平(投資的本質)》《段永平(投資的本質)》《段永平(投資的本質)》《段永平(投資的本質)》
 
IN Port Alfred [[[[WhatsApp (((+27632505360))) *____**)) ABORTION PILLS FOR S...
IN Port Alfred [[[[WhatsApp (((+27632505360))) *____**)) ABORTION PILLS FOR S...IN Port Alfred [[[[WhatsApp (((+27632505360))) *____**)) ABORTION PILLS FOR S...
IN Port Alfred [[[[WhatsApp (((+27632505360))) *____**)) ABORTION PILLS FOR S...
 
Hi 00971552965071 ABORTION PILLS IN Marina Palm Jumeirah JVC
Hi 00971552965071 ABORTION PILLS IN Marina Palm Jumeirah JVCHi 00971552965071 ABORTION PILLS IN Marina Palm Jumeirah JVC
Hi 00971552965071 ABORTION PILLS IN Marina Palm Jumeirah JVC
 
Kuwait City₩Kit【+971523788684】彡 ௹#Abortion Pills For sale In Kuwait City.
Kuwait City₩Kit【+971523788684】彡 ௹#Abortion Pills For sale In Kuwait City.Kuwait City₩Kit【+971523788684】彡 ௹#Abortion Pills For sale In Kuwait City.
Kuwait City₩Kit【+971523788684】彡 ௹#Abortion Pills For sale In Kuwait City.
 
IN MUSCAT & OMAN 🏥[^(+968_76875161*))☎️)¥) LEGIT Cytotec Pills.
IN MUSCAT & OMAN 🏥[^(+968_76875161*))☎️)¥) LEGIT Cytotec Pills.IN MUSCAT & OMAN 🏥[^(+968_76875161*))☎️)¥) LEGIT Cytotec Pills.
IN MUSCAT & OMAN 🏥[^(+968_76875161*))☎️)¥) LEGIT Cytotec Pills.
 
Abortion in AL AIN*%UAE^*[☎️+971523788684**]]@ @# Abortion pills for sale in ...
Abortion in AL AIN*%UAE^*[☎️+971523788684**]]@ @# Abortion pills for sale in ...Abortion in AL AIN*%UAE^*[☎️+971523788684**]]@ @# Abortion pills for sale in ...
Abortion in AL AIN*%UAE^*[☎️+971523788684**]]@ @# Abortion pills for sale in ...
 
Al Doha +971552965071 Abortion Pills in Doha Qatar Al Wakrah misoprostol/cyto...
Al Doha +971552965071 Abortion Pills in Doha Qatar Al Wakrah misoprostol/cyto...Al Doha +971552965071 Abortion Pills in Doha Qatar Al Wakrah misoprostol/cyto...
Al Doha +971552965071 Abortion Pills in Doha Qatar Al Wakrah misoprostol/cyto...
 
Abortion Pills for sale in Ajman (UAE) ((+27.7377;58;557) Abortion Pills / Cy...
Abortion Pills for sale in Ajman (UAE) ((+27.7377;58;557) Abortion Pills / Cy...Abortion Pills for sale in Ajman (UAE) ((+27.7377;58;557) Abortion Pills / Cy...
Abortion Pills for sale in Ajman (UAE) ((+27.7377;58;557) Abortion Pills / Cy...
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Androidpn作为android推送方案存在的问题

  • 1. androidpn 作为 Android 推送方案存在的问题 如果百度或者 Google 搜索 “android 推送” 关键字,相当一部分文章都在说 到 androidpn。也可以看到有人说用起来了,有人在吐槽说不稳定、功能缺失, 维护工作量大。本文尝试对 androidpn 的前世今生做个汇总分析。 访问 androidpn 官方网站,我们可以了解到如下的基本信息: 1. androidpn 全称是 Android Push Notification。 2. 这是韩国人开源放在 sourceforge.net 上的一个开源项目,文档是韩文的。 3. 最近的版本更新时间是 2010-11-05,也就是约二年之前。 4. 来自中国的访问量,占其总访问量的 81%。请点击本链接再看当前的统 计。 以上的基本信息表明,这不是一个很成熟的项目(貌似个人维护的),但是确有 大量的中国人有兴趣。 相信有不少同学知道为什么国人对 androidpn 这么感兴趣,这是国情啊:因为 Google 官方的 GCM(之前叫 C2DM)在国内使用不了。另外,国内之前又没 有可用好用的第三方推送服务。所以,大家不得已而为之:自己搞。从头开始? 工作量太大,太不 划算了。所以从开源的开始。而也恰好,开源项目里,明确 地为 Android Push 来生的,也就 androidpn 了。mqtt 里没有整合这么好可以 快速跑起来的。
  • 2. 但 androidpn 搭建起来后,情况如何呢?CSDN 上一个美女程序员的文 章 androidpn 推送初探 比较热。这篇文章里作者提出来几个问题: androidpn 服务器收到消息后如何知道要发给哪个用户? 一旦服务器重启了,客户端似乎不会自动重连,需要用户自己中断后台 Service 再重启应用。 androidpn 服务器不保存消息。就是说它一有消息就会发出去,即使客户 端根本不在线,它也不会重发。 作者赞在于,不只是满足于把环境搭建起来,而且针对业务需求做了思考。解析 下她提出的问题: 第一个问题相对简单,要去定制下用户体系,业务部分的用户体系需要与 androidpn 对应起来。 第二个问题,是个小细节,androidpn 客户端没有去做这些细节。 第三个问题,是最重要的。androidpn 背后的 Openfire, XMPP IM 服务器, 是 消息内容是不会落地的,即只在内存里保存一下离线消息。如果要生产用,需要 考虑改造这里。 以下从 androidpn 的技术基础来个深入的剖析。 androidpn 是一个整合方案,它是基于 XMPP 开源组件的 。即服务器端基于 Openfire,客户端基于 Smack ,这二个是 XMPP 开源组件里最常见的两个。
  • 3. androidpn 使用 Spring 框架做了个 Web 层,把 XMPP IM 组件集成起来,以实 现 Android Push 功能。因此,androidpn 的可用性来自于如下几个方面: 1. 其依赖的 XMPP IM 协议与通讯机制,是否适合用于 Android Push 场景。 2. 其是否为 Android Push 需求做了必要的定制。 第一个方面,XMPP 协议与开源组件。XMPP 是个成熟的 IM(即时通讯)协议, 基于 XML 文本方式实现,灵活强大。国外大多数聊天服务都是基于 XMPP 的, 比如:Gtalk,Facebook Chat,iMessage 等。正因为如此,所以 XMPP 的一些 开源组件可用性还不错,国内很多新兴的聊天工具刚开始完全基于 XMPP 开源 组件来开发,比 如米聊。 但是,以笔者曾经实现过移动聊天 App 的类似经历来说,XMPP 开源组件有其 问题,需要大范围改造: 1. XMPP 协议复杂冗余,客户端费流量、费电; 2. 开源的 XMPP 服务器(androidpn 选择的是 Openfire)单点容量有限, 集群方案复杂、不成熟。 基于这些原因,并考虑到大范围改造技术上更不可控,所以笔者所在的团队刚开 始用 XMPP 开源方案,后来完全切到自己实现的技术方案上了。 第二个方面,Android Push 的需求场景,除了消息能够及时地推送到客户端, 还有什么其他的基本需求呢?这里试举两个例子:其一,确保消息能够到达。即 是否能有机制确保消息不 会丢失,不管什么原因。其二,向指定的一群人推送
  • 4. 消息。anroidpn 的基础 XMPP IM 组件是没有考虑这些的,需要做大量的定制改 造。 总结起来,使用 androidpn 可以简单地做到:把消息推送到客户端。但是,要使 其适合开发者需要,并在生产环境上运行,则可能需要做很多定制开发工作。从 笔者与多个开发者交流得到的反馈来看,在生产环境里运行起来问题很多。 上面说到,国内之前没有什么可用好用的第三方消息推送服务,所以大家不得不 自己去考虑搭建。最近国内有个第三方消息推送服务开放了,它是极光推送,普 通开发者可以随时注册帐号、下载 SDK 做集成,整个过程 3 分钟就可以完成。 关键在于,这个服务是免费的。