Register mobile devices, toggle mobile, web, and desktop notification channels, set per-thread notification levels, send a notification from the CLI or another plugin, or test delivery for BB push notifications.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Push Notifications?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/get-bb-push-notifications)
---
name: push-notifications
description: "Register mobile devices, toggle mobile, web, and desktop notification channels, set per-thread notification levels, send a notification from the CLI or another plugin, or test delivery for BB push notifications."
---
# Push notifications
The plugin notifies when a thread asks a question, finishes a turn, or stops on
an error, and anyone can send their own through the same channels. Mobile devices receive Expo push messages even when the app is
closed. Web and desktop clients receive system notifications only while a bb
tab or app window stays open, and each browser grants permission separately in
the plugin settings. When a notified
thread is read on any client the plugin sends registered devices a silent push
and tells open web and desktop clients to close the thread's notifications.
```sh
bb push-notifications status [--json]
bb push-notifications list [--json]
bb push-notifications add --token <expo-push-token> --platform <ios|android> --label <device-name> [--json]
bb push-notifications remove <id> [--json]
bb push-notifications test <web|desktop> [--json]
bb push-notifications send --title <text> [--body <text>] [--thread <thread>] [--json]
bb push-notifications thread <thread> [--level inherit|all|input-only|muted]
bb plugin config push-notifications set <mobileEnabled|webEnabled|desktopEnabled|activeDeviceFirst> <true|false>
bb plugin config push-notifications set defaultLevel <all|input-only|muted>
bb plugin config push-notifications set childLevel <inherit|all|input-only|muted>
bb plugin config push-notifications set expoPushUrl <url>
```
- `add` upserts by token: a known token refreshes its label and last-seen time
and keeps its id. A device is removed when Expo reports its token as no
longer registered, in the reply to a send or in the delivery receipt the
plugin reads 15 to 20 minutes later, even across a server restart. Android reports a reinstalled or reset app
only in the receipt.
- `list` shows token suffixes only.
- The three channel switches default to `true` and apply immediately to this
server. `bb plugin disable push-notifications` stops all delivery.
- `activeDeviceFirst` (default `false`) routes thread notifications to the
device in use: a phone, browser, or desktop app where bb saw input in the
last two minutes is notified right away, and the other channels 90 seconds
later, only if the thread is still unread and its level still allows it.
Browsers and the desktop app count only with notification permission, and
an open one must confirm receipt within 5 seconds. With no device in use,
or none reachable, every channel is notified at once. `send` ignores it. `status`
prints which kinds of device are in use now (`activeChannels` in `--json`).
- `test` broadcasts to every connected, permitted client of that type and
fails when the channel is disabled. Success confirms the broadcast, not that
the OS showed a banner; system notification settings can still suppress it.
- `send` delivers to every enabled channel, like a thread notification, and
prints the channels it reached: `web` and `desktop` when they are on, and
`mobile` when Expo accepted at least one device. The title is cut to 80
characters and the body to 180. With `--thread`, a click opens that thread;
without it, a click opens bb. It fails with `not_delivered` when no channel
received it and `thread_not_found` for an unknown or deleted thread. Thread
notification levels don't apply.
- `thread` prints a thread's resolved notification level and its source;
`--level` sets the thread's own level. A thread uses its own level, else
`childLevel` if it has a parent (default `input-only`; `inherit` follows
`defaultLevel`), else `defaultLevel` (default `all`). Every ancestor's own
level also caps its child threads. `all` notifies on finished turns too,
`input-only` keeps questions, approvals, and errors only, and `muted` sends
nothing.
A plugin sends the same notification from its server code with:
```ts
const { channels } = await bb.sdk.plugins.callRpc({
pluginId: "push-notifications",
method: "notifications.send",
input: { title: "Deploy failed", body: "api-prod rolled back", threadId },
outputSchema: z.object({
ok: z.literal(true),
channels: z.array(z.enum(["web", "desktop", "mobile"])),
}),
});
```
`body` and `threadId` are optional. An empty `channels` means nothing was
delivered. `bb plugin rpc inspect push-notifications notifications.send`
prints the published input and output schemas.
Every command takes `--help`. A failure with `--json` prints
`{ "ok": false, "error": { "code", "message" } }` on stdout and the readable
text on stderr.
The SDK's plugin settings API changes the same settings. `sdk.plugins.callRpc`
also takes `notifications.test` (`{ channel }`), `threadNotifications.list`
(`{ threadIds }`, up to 200), and `threadNotifications.set`
(`{ threadId, level }`). Permission requests still require a click in the
target client.
Inspect `status` before changing a channel, and change only the requested
channel or device.