dollardhingra
dollardhingra

Reputation: 323

Firebase Cloud Messaging Unauthorized Error 401 on Chrome

I have almost succeeded in setting up Firebase Cloud Messaging. I am stuck on the last step i.e. sending the cloud message to the device. I am using a google chrome extension 'Postman' to post the message.

Image Description

I receive Unauthorized error 401 whenever I send the message. Can anyone hint me where I maybe going wrong ?

Upvotes: 0

Views: 1199

Answers (1)

Udit Jain
Udit Jain

Reputation: 15

I was also having the same issue. Follow the steps below:

  1. Go to Firebase Console
  2. Go to your Project
  3. Go to Settings
  4. Select Cloud Messaging Tab
  5. Copy the Server Key (usually starts with AAA****) and apply in your request.

Hope this helps! :)

Upvotes: 1

Related Questions