GCM sender id with id mismatchsender error

I used two different sender IDs with two different applications. When I submit the first application of the application to the second application, it is successful, but when I submit the second application, I get:

{"multicast_id": 8546528660791862014, "success": 0, "failure": 1, "canonical_ids": 0, "Results": [{"error": "MismatchSenderId"}]}

+2
android push-notification google-cloud-messaging
Dec 10 '13 at 15:31
source share
2 answers

I used the same sender ID for both applications, they also have a different package name. It is not necessary to create different sender identifiers for another application. The same server side api key is also used.

+2
Dec 11 '13 at 9:21
source share
β€” -

The API key that you use to send messages is tied to the Google API Project ID. This project ID is used to register your application with GCM. The registration identifier that you receive when registering your application is tied to this project identifier.

Now, if you send a GCM message using the project identifier A API key with the registration identifier associated with project identifier B, you will get MismatchSenderId .

You did not indicate whether you used the same API key to send messages to both applications, and did not indicate whether you use the same project identifier to register two applications in GCM, so it’s difficult to explain the specific behavior you noticed, but my general explanation should point you in the right direction.

+2
Dec 10 '13 at 15:42
source share



All Articles