Loading...

{{notif_text}}

Why join channels?
Learn from peers
Discuss and share learning resources with the top professionals across the world
Open business or job opportunities
Earn reputation points to get consulting projects, attract talent or land jobs.
Accelerate your growth
Grow your network and get exclusive deals from our learning partners.
signup now
Vaibhav Sharma asked a question
{{::getFormatedLocalTime("2017-10-21T13:50:13.172Z", {without_time: true})}}

Creating a real time like comment system (Android app)

Hi,

I am creating an android application in which i have a card view in which my post is visible and below the post it has two textviews which is showing total no of comments and and likes. Now what i want to do is to update my total likes and comments whenever a new like or comment will be posted by some other users. In backend i am using php and mysql. I want to create a realtime app which will update the user interface whenever a new content is available same like firebase . As firebase displays the latest update as soon as the user has changed some value in the database and the same value gets reflected in the user interface. 

 

answer
submitting answer...
submit
No answers yet. Be the first one to answer!
8 answers
Priyank Agrawal Android Scholar by Google, Tech Guy @ CutShort
{{::getFormatedLocalTime("2017-11-06T07:05:24.645Z", {without_time: true})}}
Having built realtime update functionality and having used Firebase RTDB and Firestore. I'de suggest using Firebase/Firestore for anyone starting a new project.

Since, you already have mysql as your db and a server, you can use Socket.io to send new data to client whenever a new like/comment happens.

At CutShort we use Socket.io to send data to active clients in realtime like credit balance update, new message in conversations or new notifications in channels.

Hope that helps :) 
PS: Upvote if you think this helped. Also you can comment given you have further questions.
Loading comments...
Akshay Bansal Mobile Development ethusiast
{{::getFormatedLocalTime("2017-10-22T13:39:54.672Z", {without_time: true})}}
Use firebase or if you want your own server then try mqtt server.
Vaibhav Sharma Android developer| technology enthusiast | Learner
{{::getFormatedLocalTime("2017-10-22T13:54:27.289Z", {without_time: true})}}
Thanks mate. I think mqtt will do the job
Loading comments...
To view all answers to this question, join this channel
join this channel
Learn how Cutshort Channels work
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.
Okay
Privacy policy
File upload not supportedAudio recording not supported
This browser does not support file upload. Please follow the instructions to upload your resume.This browser does not support audio recording. Please follow the instructions to record audio.
  1. Click on the 3 dots
  2. Click on "Copy link"
  3. Open Google Chrome (or any other browser) and enter the copied link in the URL bar
Done