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:
- Open your workspace in Safari.
- Tap Share, then Add to Home Screen.
- Open Sabha from your home screen.
- 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.
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:
npx web-push generate-vapid-keysSet the two keys as VAPID_PUBLIC_KEY and VAPID_PRIVATE_KEY and deploy. See Deploy Sabha. Sabha gives the push services your sending address, MAILER_FROM_EMAIL, as its contact.
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.