What is diffrence implementing xtify using GCM and

2019-08-17 02:47发布

问题:

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.



标签: android xtify