notification in social network application
<p>I am currently working on application like social networking. In this application if one user sends message or add request to any other user,so how can i achieve that.</p>

<p>For example,
There are two users,USER A &amp; USER B. If USER A sends message to USER B, then the USER A should get the notification in his profile immediately.</p>

<p>So what should be the functionality at USER A side &amp; USER B side. Please give me some idea for this.</p>
