开发者

How to receive feedback from server

开发者 https://www.devze.com 2023-03-30 01:40 出处:网络
When an update is happening on the server side for a specific user then the server will notify to that user by pushing a notification.

When an update is happening on the server side for a specific user then the server will notify to that user by pushing a notification.

Let two client A and B are friend. Both have registered to the server. Both have a message field in the da开发者_开发技巧tabase for storing message receiving from others.

B has sent a message to A's message field. Now server's task is to check A's message field. If there is a recent message for A, then the server will notify A by sending this message. How can i solve this. Any suggestion will appreciate..


Google has a push notification system for android called C2DM

Keep in mind this system is merely designed to sign A that there is a new message, not to actually push the complete message to the device. After receiving the notification the device should contact the server to fetch the message.

0

精彩评论

暂无评论...
验证码 换一张
取 消