401 Unauthorised Error

16 views
Skip to first unread message

hushen...@iwantunlimited.com

unread,
Aug 25, 2016, 11:01:49 AM8/25/16
to Firebase Google Group
Hi,

I am trying to send FCM Notification using rest client on,


Header is:
Content-Type: application/json
authorization: key={API_KEY}

Method type is: POST

Payload is: 

{  
"data":{  
   "title":"test title",
   "body":{
"testKey": "testVal"
},
  "url":"testurl"
},
"notification":{  
  "title":"test title",
  "body":"test body",
  "content_available": "true"
},
 "to":"{DEVICE_TOKEN}"
}


This was working fine. Suddenly it has stopped working. I verified the API key in google-services.json on my firebase dashboard. Its the same as previous one, no changes. Also, checked the device token of my device, it is the correct one as well. Please share some pointers. 

Thank you.

Best Regards,
Hushen Savani
Reply all
Reply to author
Forward
0 new messages