Error FIrebase 401 FCM in Android

First, we create an FCM project and get googlePlayService.json, and if we send a notification using the FCM console, then the notification will be sent successfully in our Android application. But if we send a notification through the local server, then 401 unauthorized errors will be sent, please suggest me we change the code on the php server or on Android.

+4
source share
1 answer

To get the Cloud Cloud Firebase server key, go to your Firebase Console and see the following screenshot to get the "Server Key" value.

enter image description here

+8
source

Source: https://habr.com/ru/post/1654477/


All Articles