Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MismatchSenderId #1215

Closed
fabuhelow opened this issue Mar 27, 2016 · 9 comments
Closed

MismatchSenderId #1215

fabuhelow opened this issue Mar 27, 2016 · 9 comments

Comments

@fabuhelow
Copy link

Hi,

I have tried to push new notification from my parse-server, but i have got the following error:

GCM request and response {"request":{"params":{"priority":"normal","data":{"time":"2016-03-27T13:15:43.556Z","push_id":"K8QBFFDDe1","data":"{"title":"The Shining","alert":"All work and no play makes Jack a dull boy."}"}}},"response":{"multicast_id":8205105798183603000,"success":0,"failure":2,"canonical_ids":0,"results":[{"error":"MismatchSenderId"},{"error":"MismatchSenderId"}]}}

I have checked my google sender id and API key and they are valid.

My parse-server version is 2.2.2

@flovilmart
Copy link
Contributor

@flovilmart
Copy link
Contributor

Also, the senderId is never used internally by the push adapter. You could remove that option from the configuration. This seem solely related to an API key problem.

@fabuhelow
Copy link
Author

@flovilmart i have checked the url that you have sent and also removed the senderId from my config. object but still got the same error

@flovilmart
Copy link
Contributor

So I'm not sure what the issue is. We use node-gcm and I've run some tests and with a valid API key from Google cloud platform, I manage to get the push sent

@fabuhelow
Copy link
Author

Thanks @flovilmart , Still need a help about this issue.

@flovilmart
Copy link
Contributor

Can you try generate another API key ? Look at node-gcm documentation, I believe they have a debug mode you can enable with environment variables

@flovilmart
Copy link
Contributor

Maybe related to #942, @weengo, what did you do to fix your MismatchSenderId error?

@rafapetter
Copy link

@fabuhelow, 2 things to check here:

  1. If you're on android, confirm that the manifest file has your sender Id. My mistake was to put the api key on that value.
    <meta-data android:name="com.parse.push.gcm_sender_id" android:value="id:XXXXXX"/>

  2. On your google console, confirm that you're using the key of type Server, and not the Android type.

@flovilmart
Copy link
Contributor

@fabuhelow did you get to the bottom of it? This is however not related to parse server but to https://github.com/parse-server-modules/parse-server-push-adapter

Would you reopen on the other repository if you still face problems?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants