laravel-notification-channels/webpush

Unable to send push notifications

Closed this issue · 3 comments

local.WARNING: Notification failed to sent for subscription https://fcm.googleapis.com/fcm/send/: Client error: POST https://fcm.googleapis.com/fcm/send/ resulted in a 403 Forbidden response:
the key in the authorization header does not correspond to the sender ID used to subscribe this user. Please ensure you (truncated...)
Any idea ?

I just had the same issue...

it was caused by pushManager.subscribe using a different VAPID_PUBLIC_KEY than the one in the .env file

Good to know the cause... And what was the fix?