web-push-libs / web-push-php

Web Push library for PHP
MIT License
1.68k stars 295 forks source link

some subscribers get 403 Error #359

Closed lrnzfrr closed 4 months ago

lrnzfrr commented 1 year ago

Library works well for 90% of records, send to chrome|firefox|edge but some subscribers get this errors: 403 Forbidden response: the key in the authorization header does not correspond to the sender ID used to subscribe this user`

aistomin commented 1 year ago

Does it happen specifically for Safari users? Maybe this discussion will help. The story short: apple requires sub claim to be provided + be an URL or "mailto:" string.