title: Sending Notification to user when user is offline in android using XMPP
body: <p>I implemented an Android chat application using Smack client with XMPP server. Everything works fine when the user is online, now when the user is offline (the app is not in running state). I would like to push notification using GCM. </p>
  
  <p>Is there a way to achieve that, and is there a way that we can manage our server itself to take care of that? </p>