diff options
| author | Adam Soltys <[email protected]> | 2026-09-05 21:47:30 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-05 21:47:30 -0700 |
| commit | 7e96dc4d4292b29156ec6b9b9c7009f8c60106f1 (patch) | |
| tree | 5705b219a401bd419f523078d1c937ff0134425b /src/app.js | |
| parent | ec1d6b8c6da0f9e4e169f4e8f95b88133207b741 (diff) | |
| download | coinosv3-7e96dc4d4292b29156ec6b9b9c7009f8c60106f1.tar.gz coinosv3-7e96dc4d4292b29156ec6b9b9c7009f8c60106f1.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 'src/app.js')
0 files changed, 0 insertions, 0 deletions
