Firebase FCM: invalid-argument

后端 未结 2 1922
天命终不由人
天命终不由人 2021-01-14 16:57

I\'m trying FCM for the first time, so just using their sample code. In fact I\'m even sending their sample messages. The following code, which is straight from the document

2条回答
  •  轮回少年
    2021-01-14 17:32

    As Carlos Fernandez Sanz pointed out, one cause for this is that the client and server are connected to different firebase projects. Project name appears in the google-services.json file on the client and in the credentials json on the server.

提交回复
热议问题