search
HomeBackend DevelopmentPHP TutorialAndroid推送自己做的效果不给力,请问大家是怎么解决的

Android推送我们自己用xmpp写的协议到达率不能保证,经常丢失,请问大家一般都是怎么解决的?

回复内容:

Android推送我们自己用xmpp写的协议到达率不能保证,经常丢失,请问大家一般都是怎么解决的?

自己学的恐怕会有很多问题。
建议可以参考开源的推送。

我之前用的是百度推送服务。你可以利用百度bae上已有的推送服务。http://developer.baidu.com/wiki/index.php?title=docs/cplat/push

自己最不好的话一般都是找第三方的吧,楼上说的那几家都是你比较多人去选择的。我刚刚看了相关的一些评测,个推、信鸽、极光、友盟相对都还不错,个推和极光一样是专门做推送的,相对要专业很多,名气也比较大一点,以前极光是免费,但是现在个推也开始对小用户免费了,一下子就变得很有优势了。建议是都接入SDK测试一下再确认自己需要哪家的推送

个推推送,免费又好使~还开放智能精准推送,到达率什么的都有保证,一年用下来感觉不错。

百度有个很给力的推送平台,基本独用他。

  • 小米推送
  • 极光推送

试试 AVOS

对于刚起步的开发者而言,可以自己写。一旦量到达了一定的阶段,自己维护和运行推送会很伤脑筋。
可以选择第三方服务,个推,百度等等。建议集成完了SDK做几轮测试,选择速度快且稳定的,目前个推好像是免费的。

自己写 不是打击你 自己写根本没法用 尤其是多用户并发的时候 使用过极光和个推 后者相对靠谱 性能稳定 要是推送量很大 需要交费

百度云推送 最好的选择

建议用第三方推送服务,比自己写要方便快捷很多,毕竟你一个人赶不上别人集一个团队或者一个公司资源做出来的东西啊

自己做只能是玩玩的,不能保证信息实时和稳定推送。可以用个推,信鸽,前者是专业推送,比较稳定;后者是大公司,可能没那么灵活。你都集成SDK测试下效果就有选择了

nodejs 的socketIO,我们的项目是用这货的~很爽

可以考虑一下开源的DDPush任意门推送

自己做会有很多坑,需要很多的投入和反复,推送稳定性和实时性很难达到,丢失什么很频繁。建议还是选择第三方的推送服务好,我们用的个推,量小免费量大才收费,但也不贵,还可以智能打标签,精准推送的选项,这个比较好。极光以前号称永久免费的,结果对接了他们商务发现忽悠人,问了也是要收费的,还不如选个推,功能也要多一些。

这种情况的话还是找第三方推送合作吧,可以节约90¥%的开发成本,而且效果也很好,这样就可以专注提升自身产品质量啦。

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
PHP Performance Tuning for High Traffic WebsitesPHP Performance Tuning for High Traffic WebsitesMay 14, 2025 am 12:13 AM

ThesecrettokeepingaPHP-poweredwebsiterunningsmoothlyunderheavyloadinvolvesseveralkeystrategies:1)ImplementopcodecachingwithOPcachetoreducescriptexecutiontime,2)UsedatabasequerycachingwithRedistolessendatabaseload,3)LeverageCDNslikeCloudflareforservin

Dependency Injection in PHP: Code Examples for BeginnersDependency Injection in PHP: Code Examples for BeginnersMay 14, 2025 am 12:08 AM

You should care about DependencyInjection(DI) because it makes your code clearer and easier to maintain. 1) DI makes it more modular by decoupling classes, 2) improves the convenience of testing and code flexibility, 3) Use DI containers to manage complex dependencies, but pay attention to performance impact and circular dependencies, 4) The best practice is to rely on abstract interfaces to achieve loose coupling.

PHP Performance: is it possible to optimize the application?PHP Performance: is it possible to optimize the application?May 14, 2025 am 12:04 AM

Yes,optimizingaPHPapplicationispossibleandessential.1)ImplementcachingusingAPCutoreducedatabaseload.2)Optimizedatabaseswithindexing,efficientqueries,andconnectionpooling.3)Enhancecodewithbuilt-infunctions,avoidingglobalvariables,andusingopcodecaching

PHP Performance Optimization: The Ultimate GuidePHP Performance Optimization: The Ultimate GuideMay 14, 2025 am 12:02 AM

ThekeystrategiestosignificantlyboostPHPapplicationperformanceare:1)UseopcodecachinglikeOPcachetoreduceexecutiontime,2)Optimizedatabaseinteractionswithpreparedstatementsandproperindexing,3)ConfigurewebserverslikeNginxwithPHP-FPMforbetterperformance,4)

PHP Dependency Injection Container: A Quick StartPHP Dependency Injection Container: A Quick StartMay 13, 2025 am 12:11 AM

APHPDependencyInjectionContainerisatoolthatmanagesclassdependencies,enhancingcodemodularity,testability,andmaintainability.Itactsasacentralhubforcreatingandinjectingdependencies,thusreducingtightcouplingandeasingunittesting.

Dependency Injection vs. Service Locator in PHPDependency Injection vs. Service Locator in PHPMay 13, 2025 am 12:10 AM

Select DependencyInjection (DI) for large applications, ServiceLocator is suitable for small projects or prototypes. 1) DI improves the testability and modularity of the code through constructor injection. 2) ServiceLocator obtains services through center registration, which is convenient but may lead to an increase in code coupling.

PHP performance optimization strategies.PHP performance optimization strategies.May 13, 2025 am 12:06 AM

PHPapplicationscanbeoptimizedforspeedandefficiencyby:1)enablingopcacheinphp.ini,2)usingpreparedstatementswithPDOfordatabasequeries,3)replacingloopswitharray_filterandarray_mapfordataprocessing,4)configuringNginxasareverseproxy,5)implementingcachingwi

PHP Email Validation: Ensuring Emails Are Sent CorrectlyPHP Email Validation: Ensuring Emails Are Sent CorrectlyMay 13, 2025 am 12:06 AM

PHPemailvalidationinvolvesthreesteps:1)Formatvalidationusingregularexpressionstochecktheemailformat;2)DNSvalidationtoensurethedomainhasavalidMXrecord;3)SMTPvalidation,themostthoroughmethod,whichchecksifthemailboxexistsbyconnectingtotheSMTPserver.Impl

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use