title: How to send Batch Push Notification Android on C# .Net
body: <p>I have two methods for sending Push Notification
  First example:</p>
  
  <pre><code>public void SendPushNotification(String regId, String message, String googleAppId, String senderId)
      {
          var value = message;
          var tRequest = WebRequest.Create(ConfigurationManager.AppSettings["RequestUrl"]);
          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}", senderId));
  
          string postData = "data.message=" + value + "&amp;registration_id=" + regId + "";
          var byteArray = Encoding.UTF8.GetBytes(postData);
          tRequest.ContentLength = byteArray.Length;
  
          var dataStream = tRequest.GetRequestStream();
          dataStream.Write(byteArray, 0, byteArray.Length);
          dataStream.Close();
  
          var tResponse = tRequest.GetResponse();
  
          dataStream = tResponse.GetResponseStream();
  
          if (dataStream != null)
          {
              var tReader = new StreamReader(dataStream);
  
              String sResponseFromServer = tReader.ReadToEnd();
  
              var httpResponse = (HttpWebResponse) tResponse;
              string statusCode = httpResponse.StatusCode.ToString();
  
              tReader.Close();
          }
          if (dataStream != null) dataStream.Close();
          tResponse.Close();
      }
  </code></pre>
  
  <p>Second example. I use PushBroker from PushSharp</p>
  
  <pre><code>            var push = new PushBroker();
              push.RegisterGcmService(new GcmPushChannelSettings(apikey));
              push.QueueNotification(
                  new GcmNotification().ForDeviceRegistrationId(deviceId).WithJson(json));
  </code></pre>
  
  <p>And this methods works good. 
  I know how send batch push notification (i mean one message and song for a list of devices). I saw example there
   <a href="https://stackoverflow.com/questions/17933125/how-to-send-batch-notifications-in-gcm-using-pushsharp?rq=1">How to send batch notifications in GCM using PushSharp</a></p>
  
  <p>But I would like to send push notification in batch, where for every device i have some special message and some song name.  So did You know any solution for my problem?</p>