Better Way to implement the chat application using

2019-01-30 04:23发布

问题:

Hi i want to implement the Chat application in android using XMPP (To avoid the GCM notifications because GCM uses request response process).

i have done the 70 perc functionality using Smack library and OpenFire server. but after completion of these i came to know about the QuickBlox SDK. I don't know completely about that but few people are saying that it is good api by seeing the features..

can any one tell me that is it correct way of implementing the chat application using smack for xmpp . or we have any other good api which uses xmpp for android .

回答1:

The Stackoverflow question "Android and XMPP: Currently available solutions" provides a good overview of XMPP client libraries for Android.

Another good resource is xmpp.org/xmpp-software/libraries.



回答2:

You can use QuickBlox1 for free.

It provides XMPP server out of the box with lots of features, you can read about features there http://quickblox.com/developers/Chat

Here is an example how to start using QuickBlox with aSmack library http://quickblox.com/developers/Android_XMPP_Chat_Sample


1Quick disclosure: I am a developer at QuickBlox.