I am trying to make a chat application in android. Just a one on one chat. However I also want the chat to be synced with the web app that runs on the browser. I am confused about how to go about it. So I want my web app as well as the android app to be in sync. I have 2 things in mind.
One,use metoerjs for frontend and php for backend connected with a mongodb. I am inclined towards metoerjs for front end because it seamlessly syncs with the mongodb object and is a good real time js library. This would require me hosting my php script on an apache server and the front end running on node.
Second, use some xmpp client to set up the chat on android.But I have no idea how am I supposed to connect it to my webserver.