Asynchronous chat on Android

Asked

Viewed 199 times

0

I’m developing an Android app where the home screen asks for user login. Simply put, a user can see the list of other registered users. 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 them (only a single text). The other user receives the message (can view the messages in an icon of your menu) and can reply again.

How can I do that?

1 answer

0


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

  1. An application on a server to host and manipulate data ( users, messages, etc. )
  2. Gogle CLoud Messaging ( push notification system that allows sending and receiving messages between Android applications)
  3. An app that communicates with your server and can receive messages through GCM );

The general idea is as follows:

  1. Apply PHP implement the GCM, allowing her to send messages from an Android device To for an Android device B ;

  2. Create an Android app that interacts with your server;

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.