firebase - FCM with Postman - The request was missing an Authentication Key (FCM Token) -


enter image description here

//body this

{     "to":     "/topics/news"     ,     "data":{         "extra_information": "this information"     }, 

//notification need give

"notification":{             "title": "chitchat group",             "text": "you may have new messages",             "click_action":"chatactivity"         }     } 

the 401 error pertains authorization key invalid or incorrect.

when using postman, add key= prefix value of authorization, so:

key=aaa... 

see stack overflow documentation did sending downstream fcm messages using postman.

also, notification message payload, text isn't 1 of valid parameters, think looking message instead.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -