title: In Google cloud messaging for android
body: <p>In my android application, i need to do push notification so, i searched for that and i found Google Cloud Messaging at android guide, <a href="http://developer.android.com/guide/google/gcm/gs.html" rel="nofollow">step by step procedure</a>.</p>
  
  <p>In Writing the Android Application</p>
  
  <p>Step 3: Write the my_app_package.GCMIntentService class </p>
  
  <p>i need to create GCMIntentService class extended from GCMBaseIntentService and i need to implement abstract methods(onRegistered,onUnregistered,etc) in GCMBaseIntentService and in onRegistered method i should send the regid to your server so it can use it to send messages to device.</p>
  
  <p>I got Cordova GCM Push Notifications Plugin for Android example from <a href="https://github.com/marknutter/GCM-Cordova" rel="nofollow">here</a> </p>
  
  <p>1) there i saw they implemented GCMIntentService class (at src/com/cordova2/gcm), in that class, see onRegistered method, after getting json i don't know why they are calling GCMPlugin.sendJavascript( json ) in line 39?.</p>
  
  <p>2) how to develop client and server for push notification using Google cloud messaging </p>