title: GCM push notification error: MismatchSenderId
body: <p>I'm trying to use GCM to push messages to my android phone.</p>
  
  <p>Whatever I try, I always have the same error: <code>MismatchSenderId</code></p>
  
  <p>I'm testing with a simple curl from CLI.</p>
  
  <p>I generated 3 keys and i tried all 3:</p>
  
  <ul>
  <li>one for server  <code>AIzaSyDXz6HLhnRsyyBSKVpdsSrPEC8rFfFbHY8</code></li>
  <li>one for browser  <code>AIzaSyDAyBIP1Qlitli5Yj-F9VIORPwLLCCn3Vo</code></li>
  <li>one for android  <code>AIzaSyCAum68Fu6U7LXpRkq0lLnCti9xQfBgL3s</code></li>
  </ul>
  
  <p>My Project ID is <code>starlit-verve-773</code> and my Project Number is <code>401070672185</code>.</p>
  
  <p>My registration ID is</p>
  
  <pre><code>APA91bENhVHjlNaf1OPo0VrxblBKkePzIcm14C4S7E0BSXsKDm9Nk0yk15Mwv54GFgPh5pP_gJTjp5Q3a5Xdfn4N8210GScD2fLmg73xDJBuaRVvjGOTh8juws5dbhYDpiSzGlaP1IhLaX6Vf9-rEEEn-JWrSa9oXUe9T7fMzgTLLrPHEosRUNw
  </code></pre>
  
  <p>I tried 2 curl commands:</p>
  
  <pre><code>curl --header "Authorization: key=&lt;key&gt;" --header Content-Type:"application/json" https://android.googleapis.com/gcm/send -d "{\"registration_ids\":[\"&lt;reg ID&gt;\"]}"
  curl --header "Authorization: key=&lt;key&gt;" --header Content-Type:"application/json" https://android.googleapis.com/gcm/send -d "{\"registration_ids\":[\"&lt;reg ID&gt;\"],\"data\":{\"message\":\"Hello\"}}"
  </code></pre>
  
  <p>My php server has the same error when it tried to push a message.</p>
  
  <p>I got my reg ID with 2 methods:
  - an app which send the reg ID to a web server with php and mysql
  - logs from eclipse when i launch this app</p>
  
  <p>I'm stuck on this for 2 days now.
  I tried to open a new developer project with not the same google account which is on my phone.
  I don't know if this is normal but the reg ID is still the same with 2 different project.</p>
  
  <p>For what I understand, my phone should have a different reg ID for each project.</p>
  
  <p>Is the reg ID the problem and how can I fix this?
  Is there another way to get the reg ID?</p>
  
  <p>i know there is a lot of questions with this problem but none has worker for me.</p>