The App Store shares one name and subtitle across a universal purchase, and the name under the icon must match it: the iPhone app gets its own bundle id (and its extensions), so it can be listed as Botan while the Mac stays Coucou. Same iCloud container and app group. Its Live Activity tokens say which app they belong to and the relay pushes to that app (allowlist APNS_APPS). Permission texts now say Botan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
Coucou relay
A tiny Cloudflare Worker that lets the Mac app start and update the iPhone's Live Activity (Mochi in the Dynamic Island while the Mac is locked).
Why it exists: Live Activity pushes must be signed with the APNs key, and that key can't ship inside the Mac app. The Mac posts Mochi's state here; the relay signs and forwards it to Apple.
What it sees: the push token of the iPhone's Live Activity and Mochi's state (agent name, state, "working · 3/7", counts), plus, while a command waits for your OK, its fingerprint (a SHA-256 hash, so the Lock Screen's Allow and Deny answer that exact command). Never a project name, a command, a path or a message. It stores nothing and logs nothing.
Deploy (once)
- Apple Developer → Certificates, Identifiers & Profiles → Keys → +.
Name it "Coucou relay", tick Apple Push Notifications service (APNs),
environment Sandbox & Production, Continue, Register, Download the
AuthKey_XXXXXXXXXX.p8(only downloadable once). Note the Key ID. - A free Cloudflare account, then in this folder:
npm install npx wrangler login npx wrangler secret put APNS_KEY_ID # paste the Key ID npx wrangler secret put APNS_KEY < ~/Downloads/AuthKey_XXXXXXXXXX.p8 npx wrangler deploydeployprints the URL, likehttps://coucou-relay.<you>.workers.dev. - Check it:
curl https://coucou-relay.<you>.workers.dev/answers "Coucou relay".
API
POST /v1/live-activity
{ "token": "<hex>", "env": "development|production", "event": "start|update|end",
"state": { "pillId": "", "agent": "", "color": "", "state": "", "statusText": "",
"tone": "", "stepIndex": 0, "stepCount": 0, "others": 0 },
"urgent": false, "dismissAfter": 0 }
200 when Apple accepted the push, 410 when the token is no longer valid, 400 when the request is malformed.