Who understood this question, help to understand the concept.

My application is not a message manager, it is just one of the possibilities. It will be activated by going to which the user can select one user from the list of his friends and send him a text message ...

I read a little and understood that it needs to be implemented using the XMPP protocol ... But it is very difficult to implement it all, therefore there are clients that support the implementation of XMPP for both the server and the client ...

One of the most popular is Xabber ... And here it is already difficult for me ...

As far as I understand

You need to somehow implement Xabber into the application, but it itself works with already created Jabber clients ... That is, you need to register each user before installing the application in Jabber and then how to connect further ...

Is it really that confusing? Or is there an easier way? Explain where to look where to start?

  • The user sends a message to the server indicating the recipient. The server sends a push to the recipient. - rjhdby

1 answer 1

You can take FireBase. There is also a user registration, incl. through the social network.

  1. At the start of the application, assign the user the status Online, when leaving - offline
  2. Register user list of his friends.
  3. In the dialogs display a list of user-friends.
  4. Create a dialog object and send messages there.
  5. FireBase will send out pushy itself and all participants in the dialogue will see everything

FireBase even has an example chat app.

  • one
    Thank! I just tested it, it really works and everything connects quickly ... Now we need to implement it in the project)) - Aleksey Timoshchenko
  • Yuri, did you connect the firebase yourself? I just have a question about sending messages to specific users ... - Aleksey Timoshchenko
  • @AlekseyTimoshchenko, well, I picked it up a bit ... I didn’t have anything to do with their chat - YuriySPb ♦