What is diffrence implementing xtify using GCM and xtify using XMPP in android?

谁说胖子不能爱 提交于 2019-12-12 05:38:11

问题


if we are implementing the push notification in android then What is diffrence implementing xtify using GCM and xtify using XMPP in android ?


回答1:


Xtify XMPP:

pros:

  • Works with Android API level 5 or higher.
  • Works with devices that does not support C2DM/GCM like the kindle fire.

cons:

  • Runs a service in the background.
  • Its only supported by Xtify 1.x APIs.

Xtify C2DM/GCM:

pros

  • Works with Android API Level 8 or higher.
  • Supported in the new 2.x Xtify APIs.
  • It does not run its own service.

cons

  • it works only with devices that have Google play/Android market.



回答2:


Use Xtify with GCM (Google Cloud Messaging) if you are using api level 5 or higher. Basically, Xtify will use Google's push server to send the push notifications. If you are supporting below api level 5, then you will need to use XMPP, since devices with sdks lower than 2.0 aren't supported by GCM.



来源:https://stackoverflow.com/questions/12215113/what-is-diffrence-implementing-xtify-using-gcm-and-xtify-using-xmpp-in-android

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!