Hello,Im having problems with the push notifications.
I’ve created the table with all the specific columns, enable the notifications on the browser and when someone connects to my site, i get corectly all the fields (user, endpoint, public key and the token) but when I try to send notifications to other user i got an error “Failed to Failed to send push notifications (failure = 1)”. If i look on the network tab, I post this information to this url → https://mysite.com/api/push/send:{“csrf_name”:“csrf616d74bf39939”,“csrf_value”:“a2679cd933af0d819d13eb8fcb5064e1”,“title”:“test”,“body”:“test”}
and the response is :
[{“success”:false},]I don’t know what i’m doing wrong, can you help me please ?
- See Important Notes under Web Push Notifications, make sure your site meets the requirements.
- Press F12 in your browser, go to the Console to check for JavaScript errors.
Thanks for your answer.I’ve checked the notes :
- My browser is compatible with this feature
- I have enable already openssl and gmp extensions
- SSL protocol is enabled on my site (and you can acces with this protocol by the way)
For the console part, I’ve nothing on this part. The window is empty when I try to launch the invoker, I got only the event on the network tab.
You may enable Debug and try again, then the actual error should be logged in the log file and outputted as JSON (which you can see in your browser’s Network panel, see Check HTTP Response).