0

This is my first post. I'm working on a project where User keep sending data to the Server and a Clint receives it. Just assume the example of Facebook where friend post things and we get Notification. I'm currently doing the same trying to make a NotificationService which will be connected to DB and keep track of user's new data and Clint get the notification.

I need help to find the logic of this, how to keep connected to server and receive the data, Where data receiving function keep running continuously.

Any link of this and demo is just appreciated.

  • Welcome to SO! Here you can only ask question related to programming - questions asking for book, tutorial recommendation are off-topic and broad questions generally end-up being closed! – hatef Jan 17 '17 at 12:02
  • @Hatef, thanks for encounter, but I'm stuck with an idea how to implement. Any help is appreciated. –  Jan 17 '17 at 12:07
  • Well you should avoid making a permanent connection. but you can use Firebase Cloud message. you can find some good resources on firebase.google.com – ʌɐɥqıɐʌ Jan 17 '17 at 12:14

0 Answers0