I’m implementing a push notification server with GCM. I send a post request with a sender ID (application key) that I got from Google API Console, and a registration ID that I got from the GCM service.
The posted JSON includes one registration ID. I always get the same response:
{
"multicast_id":8546528660791862014,
"success":0,
"failure":1,
"canonical_ids":0,
"results":[
{
"error":"MismatchSenderId"
}
]
}
What might be the problem? What am I doing wrong?
See the Stack Overflow post Why do I get “MismatchSenderId” from GCM server side?.
From the URL above:
Some people are reporting issues using the “Key for Server Apps” type of keys, but having success using the Browser Key type instead. Personally, the Server Key type works for me, but try both, YMMV.