title: I can not pass data from c# server to GCM app
body: <p>So i'm trying to send some data from my c# server to my gcm android application. It works just fine(after whole day of work) but i can't figure out how to actualy send some data(and recieve it). On my c# side i have:</p>
  
  <pre><code>     using (var wc = new WebClient())
          {
              wc.Headers.Add("Authorization", "key=" + "key");
              var nameValues = new NameValueCollection
                       {
                           {"registration_id", "id"},
                           {"collapse_key", Guid.NewGuid().ToString()},
                           {"data.payload", "works!!!!!!"},
                           {"message", "YES it works!!!"}
                       };
              var resp = wc.UploadValues("https://android.googleapis.com/gcm/send",nameValues);
              var respMessage = Encoding.Default.GetString(resp);
              MessageBox.Show("Got respose from GCM: " + respMessage);
          }
  </code></pre>
  
  <p>and in my onmessage method on android application i have:</p>
  
  <pre><code>     protected void onMessage(Context arg0, Intent arg1) {
      Log.i("Registration", "Got a message!");
      Log.i("Registration", arg0.toString() + " " + arg1.toString());
      String score =  arg1.getExtras().getString("message");
      score=arg1.getExtras().getString("data.payload");
  </code></pre>
  
  <p>The problem is that my score String is always null :S</p>
  
  <p>Any ideas?</p>