# Push notifications

> Add your Android, iOS and web apps, register devices and send notifications.

Source: https://daster.io/docs/messaging/push-notifications/ · Last updated: 2026-11-21

DASTER sends push notifications through Firebase Cloud Messaging (Android), Apple Push Notification service (iOS) and Web Push (browsers), with the credentials of your own Firebase project, Apple developer account and site. DASTER needs no account of its own at those services.

Open **Push notifications** in your project. Its tabs are **Apps & credentials**, **Devices**, **Send a notification** and **Deliveries**.

## Add an app

1. On **Apps & credentials**, choose **Add app** and pick the platform: Android, iOS or web. The first app turns Push on for the project.
2. Enter the credentials:
   - **Android (Firebase)**: the **Firebase project ID** and the **Service account key (JSON file)** from Firebase › Project settings › Service accounts.
   - **iOS (APNs)**: the key ID, **Team ID**, **Bundle ID**, the **Signing key (.p8 file)** and the **APNs environment** (sandbox or production). A device token works only on the environment its build was made for.
   - **Web Push**: the **Contact email for push services**. Leave **VAPID private key** empty and DASTER generates the key pair; you then get the public key for your site's subscription code.
3. Save. Credentials are sealed and never shown again; the page shows "Saved · version N". **Replace credentials** starts empty; **Delete credentials** (type the app name) revokes them.

## Devices

Your app's server registers devices for its signed-in users. **Devices** lists each device by its DASTER ID, with topics, expiry and status; **Remove** revokes one. DASTER never shows a device token.

## Send

On **Send a notification**:

- **Send test** sends to the app's devices in the topic `test`.
- **Send** targets all devices, a topic or chosen devices. The confirmation counts the matching devices.
- **Schedule** sends it later, up to 30 days ahead. A scheduled send can be cancelled with **Cancel send** until a provider has seen it.

**Deliveries** shows the figures, a chart of the last seven days and each send, with the result for each device. **Export CSV** downloads the deliveries of the last 30 days. Push templates with `{{variables}}` can be created, edited and deleted; a send already queued keeps its text.

A notification accepted by Firebase, Apple or a Web Push service is not proof that it reached the device: the services do not report that back.

## Limits

| Limit                | Value                                              |
| -------------------- | -------------------------------------------------- |
| Apps                 | 10 per project                                     |
| Devices              | 100 per app                                        |
| Sends                | 20 per hour, reaching at most 200 devices per hour |
| Audience of one send | At most 100 devices                                |
| Device expiry        | 30 days by default (1 to 90)                       |

## From your server

Apps hosted on DASTER get `DASTER_PUSH_API_URL` and `DASTER_PUSH_KEY` when Push is wired to them. Register a device:

```http
POST /communications/v1/projects/{projectId}/push/apps/{appId}/devices
Authorization: Bearer <push key>
Content-Type: application/json
Idempotency-Key: device-42

{ "target": "<device token>", "topics": ["news"], "expiresInDays": 30 }
```

Send with `POST …/push/apps/{appId}/messages` and exactly one of `targets`, `topic` or `broadcast: true`, plus `title` and `body`. Add `sendAt` (an ISO time from 1 minute to 30 days ahead) to schedule it.

> **Note:** Not available yet: removing an app, opens and taps, and the lock-screen preview.
