How to implement chat functions in an Android application?

I am making an application in which I need to implement chat functions. We have our own server, from which we get a list of friends from the server.

I need to send a message to friends and get a response from these friends. To do this, I think I need to send msg to this friend's server, in which I should chat.

But I can’t figure out how to get a response from the chat message server. Please, help

+4
source share
2 answers

You can use various APIs to implement the chat function. Here is a link to a sample open source application that uses the Smack api.

http://davanum.wordpress.com/2008/12/29/updated-xmpp-client-for-android/

See the XMPP-based sample app. You can set up your google account for testing.

+1
source

You can implement chat functions either using a third-party API, like (Smack, Asmack), or by implementing client server logic. I would prefer to use the above API to implement chat functions in your application.

0
source

Source: https://habr.com/ru/post/1443157/


All Articles