aboutsummaryrefslogtreecommitdiffstats
path: root/names
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-05 21:47:30 -0700
committerAdam Soltys <[email protected]>2026-09-05 21:47:30 -0700
commit1da2663aff784e9061aef1f30b842a1ca216b905 (patch)
tree01e2ad1505ba7d88fc71afbcef989e805065ae84 /names
parent5de0ef4232270b8b0d67b2c001b62fa316c939a2 (diff)
downloadcoinosv3-server-1da2663aff784e9061aef1f30b842a1ca216b905.tar.gz
coinosv3-server-1da2663aff784e9061aef1f30b842a1ca216b905.zip
Heal dead push subscriptions from a VAPID key rotation — the reason notifications went silent. registerPush reused whatever getSubscription() returned and only ever subscribed fresh when there was none; a subscription made against an OLD VAPID key can never receive a push (the notifier's send fails with a permanent 403, which was never pruned, and the client kept re-registering the same dead endpoint). Now the client fetches the current VAPID key first and, when an existing subscription's applicationServerKey doesn't match, unsubscribes and re-subscribes against the current key — so a device self-heals on next open. And the notifier prunes 403 endpoints alongside 404/410. Deployed nwcpush on cs
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MGzU12QrAA4G6BYGzGVdXz
Diffstat (limited to 'names')
0 files changed, 0 insertions, 0 deletions