---
title: "Install and push notifications"
description: "Install Sabha as an app on your phone or computer and get push notifications, no app store needed."
---

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

# Install and push notifications

Sabha installs straight from your browser, like a regular app, on phones, tablets and computers. Once installed, it gets its own icon and window, push notifications and a badge with your unread count.

## Install Sabha

In most browsers, **Install Sabha as a web app** at the top of your profile settings shows the steps for your browser and device, with an **Install now** button where the browser allows it. In Chrome and desktop Firefox, use the browser's own install option, such as **Install app** in Chrome's menu.

### iPhone and iPad

On iOS, push notifications only work once Sabha is installed:

1. Open your workspace in Safari.
2. Tap **Share**, then **Add to Home Screen**.
3. Open Sabha from your home screen.
4. Turn on notifications from inside the installed app.

If you try to turn on notifications in Safari first, Sabha shows you these steps.

## Turn on push notifications

In your notification preferences, under **This browser**, click **Turn on**. Your browser asks for permission: allow it, and Sabha starts sending pushes to that device. You can turn push off for all your devices with **Push notifications** in the same preferences.

What you're notified about depends on each channel's notification level. See [Notifications](https://next.sabha.co/docs/features/notifications/).

## What a notification looks like

- **Direct messages** show the sender's name and their message.
- **Channels** show the channel's name, then the sender's name and message.
- **Thread replies** show 🧵 and the channel's name, and open the thread.

Messages are cut to 200 characters. Clicking a notification opens the conversation: a channel at your first unread message, a forum with the post open at the reply. It opens in the Sabha window you're using if one has focus, or in a new one.

You won't get a push for a channel you're looking at right now.

## Badge

The installed app's icon shows how many conversations need you: channels with an unread @mention, and direct messages with anything unread. It shows where your device supports app badges.

## Offline

Once you've turned notifications on, Sabha shows its own offline page instead of a browser error if your connection drops. Click **Retry now** when you're back online.

## For administrators: setting up push

Push notifications need a VAPID key pair, which lets your server prove its identity to the browsers' push services. Generate one:

```bash
npx web-push generate-vapid-keys
```

Set the two keys as `VAPID_PUBLIC_KEY` and `VAPID_PRIVATE_KEY` and deploy. See [Deploy Sabha](https://next.sabha.co/docs/self-hosting/deploy/#configuration). Sabha gives the push services your sending address, `MAILER_FROM_EMAIL`, as its contact.

> **Keep the keys stable**
>
> Each device's subscription is tied to your public key. If you change the keys, everyone needs to turn push notifications on again.

To skip pushes for a channel someone is already looking at, Sabha asks its WebSocket server, AnyCable, who's online. This needs AnyCable-Go 1.6.9 or newer. If Sabha can't reach AnyCable, it falls back to a rougher check, and someone who was online in the last few minutes may miss a push.

The installed app takes its name from the workspace's name, its theme color from the accent, and its icon from the logo. See [Name, logo and email](https://next.sabha.co/docs/workspace/identity/).

Source: https://next.sabha.co/docs/features/push-notifications/index.mdx
