Asynchronous Chat on Android

0

I'm developing an Android application where the home screen asks for user login login. In a simple way, a user can see the list of other users registered. I now need to implement an asynchronous chat. That is, the logged in user selects a user from the list and can then send a message to those users (only plain text). The other user receives the message (you can view the messages in an icon of your menu) and you can reply again.

How can I do this?

    
asked by anonymous 30.09.2015 / 20:54

1 answer

0

Well, there are several ways to implement a chat on Android. In most cases you will need to use at least:

  • An application on a server to host and manipulate data (users, messages, etc.)
  • G oogle C M essaging a> (push notification system that allows sending and receiving messages between Android applications)
  • An app that communicates with your server and can receive messages through GCM );
  • The general idea is as follows:

  • Make the PHP application implement GCM , allowing it to send messages from an Android A device to an Android device B ;

  • Create an Android app that interacts with your server;

  • You can take a look at in this example here (the server implementation is in Java, but for have a sense of how everything works).

        
    30.09.2015 / 22:35