L
L
Lev Rtutin2017-12-22 15:29:18
Push technologies
Lev Rtutin, 2017-12-22 15:29:18

Why doesn't FCM send push notifications NOT from localhost?

I get a token when I open the application, then I send a request like this:

{
  "notification": {
    "title": "Portugal vs. Denmark",
    "body": "Lorem Ipsum",
    "icon": "firebase-logo.png",
    "click_action": "FCM_PLUGIN_ACTIVITY"
  },
  "to": "cy05g0QmiNs:APA91bGRDffgOoeAYOrcwDmASpJWNGsURtKpsP0KN-oQUzJGYqmYEfcfhlOcKVVzUFGXx82kywQWHIsZxzTEu-RvJ6fLMDgBqW9z4jMohxWq8NU5jZcKCwHjIk9ZFCdHB_ROJbyTaJUt"
}

When I look from the localhost, everything goes as it should, the message arrives and everything is 10/10, and when I upload it to the server and try to watch from it, the received FCM token does not want to receive, it says: "error": "MismatchSenderId"
How to make it send messages? There is a suspicion that you need to specify the domain somewhere in the Firebase console, but where?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question