What is the `Authorization` part of the http post request of Google's Firebase Downstream message?

后端 未结 3 1071
既然无缘
既然无缘 2020-12-30 00:18

I want to try to send a message using google\'s FCM messaging service and as the document says, the http request should be something like this:



        
3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-30 01:00

    This is your Server key which you can observe into console.developers.google.com or Firebase project console under Project Settings > Cloud Messaging. Note the key it's auto created by Google Services. You ought add IP Address inco G.Console to restrict usage.

    Plus do remember about Content-Type: application/json, otherwise you will get Error=MissingRegistration.

提交回复
热议问题