diff options
| author | Adam Soltys <[email protected]> | 2026-10-23 07:39:21 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-23 07:39:21 -0700 |
| commit | 8ea5ae33f14ade28a0809a6dc267b44570c8e74f (patch) | |
| tree | ca044c857b33b61f24e30ff5e741102f7ce95b83 | |
| parent | 9aca27c717b713ff6e8ec8a2eeded1dff92c4735 (diff) | |
| download | coinosv3-server-8ea5ae33f14ade28a0809a6dc267b44570c8e74f.tar.gz coinosv3-server-8ea5ae33f14ade28a0809a6dc267b44570c8e74f.zip | |
nwcpush: NWC wake pushes live 120 s at APNs, the request window, so a phone in deep sleep gets the wake late rather than neverHEADmaster
Co-Authored-By: Claude Fable 5.1 <[email protected]>
| -rw-r--r-- | nwcpush/server.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nwcpush/server.js b/nwcpush/server.js index 947b52e..a6fd7c7 100644 --- a/nwcpush/server.js +++ b/nwcpush/server.js @@ -370,7 +370,7 @@ async function wake(servicePk, eventId, ev) { let ok = 0; for (const r of targets) { try { - await deliver(r.sub, payload, { TTL: 60, urgency: 'high' }); + await deliver(r.sub, payload, { TTL: 120, urgency: 'high' }); // the request window; a phone in deep sleep gets the wake late rather than never ok++; } catch (e) { // 404/410 mean the browser dropped the subscription: forget it. |
