mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 13:40:44 +00:00
feat: add authenticated iOS background presence beacon (#73330)
* feat: add iOS background presence beacon Co-authored-by: ngutman <1540134+ngutman@users.noreply.github.com> * fix: keep iOS background reconnects ahead of beacon throttle * build: refresh gateway protocol swift models * fix: emit swift protocol string enums --------- Co-authored-by: ngutman <1540134+ngutman@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
d525d6486d
commit
bdba90a20b
@@ -114,6 +114,17 @@ Expected operator flow:
|
||||
4. The app publishes `push.apns.register` automatically after it has an APNs token, the operator session is connected, and relay registration succeeds.
|
||||
5. After that, `push.test`, reconnect wakes, and wake nudges can use the stored relay-backed registration.
|
||||
|
||||
## Background alive beacons
|
||||
|
||||
When iOS wakes the app for a silent push, background refresh, or significant-location event, the app
|
||||
attempts a short node reconnect and then calls `node.event` with `event: "node.presence.alive"`.
|
||||
The gateway records this as `lastSeenAtMs`/`lastSeenReason` on the paired node/device metadata only
|
||||
after the authenticated node device identity is known.
|
||||
|
||||
The app treats a background wake as successfully recorded only when the gateway response includes
|
||||
`handled: true`. Older gateways may acknowledge `node.event` with `{ "ok": true }`; that response is
|
||||
compatible but does not count as a durable last-seen update.
|
||||
|
||||
Compatibility note:
|
||||
|
||||
- `OPENCLAW_APNS_RELAY_BASE_URL` still works as a temporary env override for the gateway.
|
||||
|
||||
Reference in New Issue
Block a user