docs: align documentation with current implementation

This commit is contained in:
weishu
2026-09-12 22:19:32 +08:00
parent dd9cfdcee5
commit 1de9613df6
27 changed files with 360 additions and 227 deletions
+16 -3
View File
@@ -1,8 +1,20 @@
# Notifications
Get notified when sessions need input, request permissions, fail, or complete — via Telegram, Server酱 (ServerChan), Web Push, or voice.
Get notified when sessions need input, request permissions, fail, or complete — via native app notifications, Telegram, Server酱 (ServerChan), Web Push, or voice.
Web Push works out of the box once you [install the PWA](./pwa.md); no configuration needed. The channels below are optional.
Web Push needs no provider configuration: [install the PWA](./pwa.md) and allow notifications. The channels below are optional.
## Native app notifications
For official Android and iOS apps, pair an updated hub and allow notifications.
No Firebase project or Apple developer account is needed. Notification content
is end-to-end encrypted through the official push relay, which also works when
you access the hub through Tailscale or your own HTTPS setup. Android requires
Google Play services and FCM connectivity.
Private app builds can use their own matching Firebase/APNs credentials.
See the [native push contract](../api/native-companion-contract.md) for those
settings and delivery details.
## Telegram Setup
@@ -19,7 +31,8 @@ export HAPI_PUBLIC_URL="https://your-public-url"
hapi hub
```
Then message your bot with `/start`, open the app, and enter your `CLI_API_TOKEN`.
Then message your bot with `/start`, open the app, and bind using
`CLI_API_TOKEN:<namespace>` (for example, `your-token:default`).
Related environment variables: