laravel-fcm-notification
laravel-fcm-notification copied to clipboard
Client error: `POST https://fcm.googleapis.com/fcm/send` resulted in a `401 INVALID_KEY` response
I am getting above error while sending notification. I dont understand how to resolve it..please help with it. I am getting this error in laravel....
According to the error, you have an invalid key. Make sure your keys are set correctly.
I am getting above error while sending notification. I dont understand how to resolve it..please help with it. I am getting this error in laravel....
Hi, please, how did you solve this? i'm getting the same error and i used the "Server key" seen in the Cloud Messaging tab in Firebase console.
getting the same error any update
Getting the same error.
Getting the same error.
The same error happened to me last week, that was because the value of key returned as 0 instead of firebase server key. I solve it by overriding vendor class composer overriding vendor class composer
@aymanalhattami did you just override without changing something ?
@aymanalhattami never mind, i figured out your solution.. the actual problem is its unable to read fcm key from services.php file. so i override the class as you said and put fcm key in another config file.. then call it.. viola.. it works.. thanks for hinting that