Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FIrebase 401 unauthorized error FCM in Android

Firstly we create FCM project and get on googlePlayService.json file and if we send notification by using FCM console then Notification send successfully in our android app But if we send notification through local server then 401 unauthorized error comes so please suggest me can we change code in php server or android.

like image 666
Sonu negi Avatar asked Dec 25 '22 01:12

Sonu negi


1 Answers

To get Firebase Cloud Messaging's Server Key, please goto your Firebase Console and see the following screen shot to get your "Server Key" value.

enter image description here

like image 160
hmaxf2 Avatar answered Dec 26 '22 17:12

hmaxf2