Reputation: 81
I need to build a Chat App in Android, but i want to deal with PHP Server for storing the data. I heard about Socket that is used for making Chat Apps. I have a sample codes of a Server Socket and Client Socket App to make a connection between them, but the two App are using Android, but i want to Server Side in my App. What is the best Approach for Achieving that ?
Upvotes: 4
Views: 4901
Reputation: 3776
I recommend you Ejabberd + Asmack.
You can instal ejabberd
in your server easily in Linux, check this. Ejabberd is based in XMPP protocol (the same used by whatsapp (I don't know if they still use it, but at least is based on XMPP).
Then for your mobilephones there is a library (Asmack, check here)
There are lots of sample codes of using this library that will help you to set up your chat application.
You will have to register your users in your server in order to be able to log in the system.
Some extra helful links:
Hope it helps
Upvotes: 3