> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openbunny.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Notifications

> Push notifications for iOS, Android, and web browsers.

The cloud supports push notifications across all platforms to alert team members about new tasks, updates, and reminders.

## Supported platforms

| Platform | Technology                                                   |
| -------- | ------------------------------------------------------------ |
| iOS      | Apple Push Notification service (APNs) via `@parse/node-apn` |
| Android  | Firebase Cloud Messaging (FCM) via `firebase-admin`          |
| Web      | Web Push (VAPID) via `web-push`                              |

## How it works

1. Devices register their push token via `POST /api/devices`
2. When the service processes a conversation and creates or updates a task, it calls `POST /api/notifications/send`
3. The cloud resolves team members and their registered devices
4. Notifications are sent to all registered devices for the team
5. Delivery is logged in the `notification_log` table

## Device registration

Mobile and web clients register their push tokens on sign-in:

```bash theme={null}
curl -X POST https://your-cloud.vercel.app/api/devices \
  -H "Authorization: Bearer session-token" \
  -d '{"token": "device-push-token", "platform": "ios"}'
```

## Notification preferences

Users can configure notification preferences in **Settings** to control which events trigger notifications and on which devices.
