Sonu negi
Sonu negi

Reputation: 119

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.

Upvotes: 4

Views: 11889

Answers (1)

hmaxf2
hmaxf2

Reputation: 656

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

Upvotes: 10

Related Questions