By OMSOFTWARE - Web & Mobile App Development Company | Pune

May 17 , 2018

In order to make a Chat Application, you need to have a server for storing user information such as password, user name etc. You can host it anywhere such as Amazon EC2, Google app engine etc. You need to register for GCM push notification.

For android, you should register to GCM and then send the GCM registration id to the server to upload. Another important thing that you need to consider is to design user interface to deliver message, send a message through REST APIs to the server. For this, you can choose to use XMPP or MQTT. Now, in order to receive message from the device, you can send a push notification to the device. There are usually two ways to do this -

1) Deliver the message payload with the help of push notification

2) Only send "sync" and on receiving the "sync" notification, receiver's android app can make a call to the server, and get standalone set of messages.

This is a simple way of doing it. To learn more about how to integrate chat eco system on android studio.