web-push-php icon indicating copy to clipboard operation
web-push-php copied to clipboard

getting error and push notification are not being sent

Open binipinki opened this issue 6 years ago • 0 comments

getting wrong keys and auth value in webpush

i am using php web push to send notification but i am getting error.

it seems that generated keys and auth are not base64 encoded but even after encoding those value and trying to send notification i dont get notification.

is there any way i can check these values correctness.

i checked correctly with database entry and its easctly what is being sent.

i even tried base64_encode($string);

and even tried replacing _ - with + and \

any help will be great.

here is link which generates this pair

https://paypalads.com/pushdaddy4.html

here is the key i got

endpoint fgl0DsWaNac:APA01bE4TBR9zNqJhT8OQqoy6C4Bsrd9ckuEbS1y0vEEd7S_mxAjfZlSA7dVVq1BP6DNQ7Jj5bqOlLywqm9KMKTkMwh1JzbIuiJPRTtms0ER0VnyoQ1pNTnkKSwnMN9plPIEbMg4B48s

p256dh BBdZTQMT4uKC1xtm1X3XTek-7Jnu8biK1hapQypi_vy_INHojmYdx5_d1qYmkZQCP5gvit-1NWdOHAnaUbnBXRA

auth sDVvfuBU1mCfKahjsWpbBQ i tried to encode p256dh and auth value with base64_encode then also it did not work however it was looking like working values being generated by some other example code.

any help will be great

binipinki avatar Apr 14 '19 07:04 binipinki