title: GCM push notification server side response for Android using C#?
body: <p>I'm implementing GCM push notification server side  for Android using C#:
  The problem is that the notification has not been received to the device, and i dont know where is the problem, is it from the server or from application?
  Here's the server side response " id=0:1373508394613753%f73a6d8d66d6cf16", i dont know does this response mean?
  So anyone can tell me does this response mean that the notification is sent but there is a problem in the device or vice versa?</p>
  
  <p>Here's Server Side Code:</p>
  
  <pre><code>public string SendAndroidPushNotification(string RegistrationID, string message)
          {
  
              string GoogleAppID = "AIzaSyAq8TKNRJpp18B9Xvc6PcM4ji8igU";          
              var SENDER_ID = "5525610314545";
              var value = message;
              WebRequest tRequest;
              tRequest = WebRequest.Create("https://android.googleapis.com/gcm/send");
              tRequest.Method = "post";
              tRequest.ContentType = " application/x-www-form-urlencoded;charset=UTF-8";
              tRequest.Headers.Add(string.Format("Authorization: key={0}", GoogleAppID));
  
              tRequest.Headers.Add(string.Format("Sender: id={0}", SENDER_ID));
  
              string postData = "collapse_key=score_update&amp;time_to_live=108&amp;delay_while_idle=1&amp;data.message=" + value + "&amp;data.time=" + System.DateTime.Now.ToString() + "&amp;registration_id=" + RegistrationID + "";
              //Console.WriteLine(postData);
              Byte[] byteArray = Encoding.UTF8.GetBytes(postData);
              tRequest.ContentLength = byteArray.Length;
  
              Stream dataStream = tRequest.GetRequestStream();
              dataStream.Write(byteArray, 0, byteArray.Length);
              dataStream.Close();
  
              WebResponse tResponse = tRequest.GetResponse();
  
              dataStream = tResponse.GetResponseStream();
  
              StreamReader tReader = new StreamReader(dataStream);
  
              String sResponseFromServer = tReader.ReadToEnd();
  
              HttpWebResponse httpResponse = (HttpWebResponse)tResponse;
              string statusCode = httpResponse.StatusCode.ToString();
  
              tReader.Close();
              dataStream.Close();
              tResponse.Close();
              return sResponseFromServer;
          }
  </code></pre>
  
  <p>Here's the reference to the Andriod Application Code:</p>
  
  <p><a href="https://stackoverflow.com/questions/17625499/push-notification-receiver-is-not-working">Push Notification receiver is not working</a></p>