Web Push response is always success, even if subscription no longer valid

If a user is subscribed to Push API (not the old Apple only push notifications), but then blocks notifications in safari settings or system preferences, the endpoint is still valid.

The response from the server that sends the push notification should be 40* if the subscription is no longer valid. this allows the server to remove that subscription

However on safari it is always valid, causing a build up of expired/unused subscription endpoints which must still be called in case they are valid.

To re-create:

  1. subscribe to user notifications
  2. in safari settings, set to the domain's notification settings to deny
  3. trigger push notification on server. it's response will still be 200 even though the subscription is now invalid

Could you confirm if you ever resolved this issue? We're noticing as well that the push response from web.push.apple.com is 201 (Created) for a subscription that's been replaced with a new one. We were expecting the response to be 410 (Invalid).

Web Push response is always success, even if subscription no longer valid
 
 
Q