dcai / airnotifier

Push Notifications Server for Human Beings.
Other
593 stars 187 forks source link

Error SENDER_ID_MISMATCH #219

Closed pandaroma closed 4 years ago

pandaroma commented 4 years ago

Hello everyone

The installation guide 3.x is very easy and clear. But when I send a message to a registered user (moodle mobile app android), I get this message:

{ "error": { "code": 403, "message": "SenderId mismatch", "status": "PERMISSION_DENIED", "details": [ { "@type": "type.googleapis.com/google.firebase.fcm.v1.FcmError", "errorCode": "SENDER_ID_MISMATCH" } ] } }

The FCM JSON-file was created and copied like in the guide.

Any ideas?

pandaroma

dcai commented 4 years ago

@pandaroma please see this doc: https://firebase.google.com/docs/reference/fcm/rest/v1/ErrorCode it could be a bad device ID being logged in moodle or airnotifier.

pandaroma commented 4 years ago

Thanks for this hint.

Do you have any other idea? I use the moodle app from google play store. Do I need to compile my own moodle app? Thanks in advance, pandaroma

pandaroma commented 4 years ago

Now, I can answer my last question for myself: you have to compile your own moodle app (with the google-services.json of your project in it). Then, it works reliable and fast. Thank you. pandaroma