laravel-notification-channels / webpush

Webpush notifications channel for Laravel.
http://laravel-notification-channels.com
MIT License
670 stars 118 forks source link

Invalid data: only uncompressed keys are supported. #155

Closed mreduar closed 2 years ago

mreduar commented 3 years ago

Hi, I am trying to send a push notification and when the notification is being sent I get this error. image

To make the subscription I am using several js methods. You can see those methods here. I have used another method to generate the key because when I run the php artisan webpush:vapid command I get an error Unable to create the key So I downloaded the web-push package and generated the key with it.

Any suggestions?

asivaneswaran commented 3 years ago

@mreduar Did you manage to solve this?

mreduar commented 3 years ago

@asivaneswaran no, I was doing some kind of test, but I couldn't solve it at the time and didn't keep trying.

martijnimhoff commented 1 year ago

I also had this issue. My mistake was that I put the auth and p256dh the wrong way around.

After swapping those variables, it worked!