From 8ea5ae33f14ade28a0809a6dc267b44570c8e74f Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 23 Oct 2026 07:39:21 -0700 Subject: nwcpush: NWC wake pushes live 120 s at APNs, the request window, so a phone in deep sleep gets the wake late rather than never Co-Authored-By: Claude Fable 5.1 --- nwcpush/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nwcpush/server.js') 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. -- cgit v1.2.3