Skip to content
Pocket Homelab
Install

Gotify

Your Gotify messages in the Alerts inbox next to ntfy, live while the app is open, with application icons, priorities and delete.

iPhoneMac
On this page

Gotify is a small self-hosted server for sending and receiving messages: your scripts, backups and monitors post to it, and a client reads them. Pocket Homelab is such a client. It puts every Gotify message into the same Alerts inbox as ntfy, streams new ones in while the app is open, and lets you delete them on the server.

What you get

  • Gotify messages in the Alerts inbox, sorted by time together with ntfy’s. Each Gotify application stands in for a topic, so its name shows on the row and in the topic picker, with the application’s own icon next to it.
  • New messages arrive live while the app is open, with the same in-app banner as ntfy.
  • The Gotify priority on every row (P8 on iPhone, Priority 8 on Mac), in red from 8 up. Priority 8 and higher also counts as a problem, so the message gets the red failure look.
  • Gotify Applications: a list of your applications with their icons, descriptions, when each last sent a message and how many of its messages the inbox holds. Tap one to show only its messages.
  • Delete a single message, or every message of one application, on the Gotify server.
  • Load older Gotify messages at the bottom of the list, 100 at a time.
  • Alerts works with Gotify alone: the Alerts tab, the Home Alerts row, the quick action and the unread badge all appear even without ntfy. Spotlight’s Alerts entry then reads “Gotify notifications”, or “ntfy and Gotify notifications” with both.
  • Everything else the inbox does works for Gotify messages too: search, the day groups, the deep links by category, Copy message, Open link when the sender set a click URL, and Write it up in Notes.

Set up

  1. Open the Gotify web UI, go to the Clients tab and create a new client, for example “Pocket Homelab”. Copy its token. It has to be a client token: an application token (from the Apps tab) can only send messages, not read or delete them.
  2. In Pocket Homelab: Settings → Services → Gotify, paste the base URL and the client token, then Test connection.
Environment keys
KeyFieldRequiredSecretWhere to get it
GOTIFY_URLGotify URLRequired—Base address of your Gotify server, e.g. https://gotify.example.com. Leave empty to hide it.
GOTIFY_TOKENGotify client tokenRequiredSecretA client token from Gotify → Clients (not an application token). Stored in the Keychain.

On iPhone

The Alerts screen shows Gotify messages next to ntfy’s, grouped by day. A Gotify row has the application’s icon and name where an ntfy row has its topic, and a P with the priority. Your Gotify applications join the topic chips at the top, after the ntfy topics.

Swipe a Gotify message to the left for Delete, or long-press it for Delete from Gotify. These delete straight away. In the detail sheet, Delete from Gotify asks first: “Delete this message from Gotify?”. The sheet’s Details section shows the Application and the Priority in Gotify’s own words, like “8 · High”.

The ⋯ menu adds three Gotify items:

  • Gotify Applications opens the list of applications. Tap one to filter the inbox to it, or swipe it for Delete All. Long-press for Show Only These and Delete All Messages….
  • Load Older Gotify Messages, when Gotify has more.
  • Delete All from <application>…, when the topic chips are filtered to one Gotify application.

Deleting all of an application’s messages always asks first: “Delete every message from <name>?”, with the note “They are deleted on the Gotify server and cannot be brought back.”

Open Gotify in the same menu opens its web UI.

On Mac

The Alerts workspace reads both inboxes. Its bar says ntfy + Gotify (or just Gotify) under the title, and the Gotify applications sit in the topic control with the ntfy topics. Rows show the application’s icon and a Priority label.

Right-click a Gotify row for Delete from Gotify. The message’s detail sheet has a Delete button in its top bar, which asks first, and the Details card lists the Application and Priority. The More menu has Gotify Applications, Load Older Gotify Messages, Delete All from <application>… and Open Gotify, as on iPhone.

In the Services directory, Gotify’s card leads to the Alerts workspace.

Actions

  • Delete one message (on the server).
  • Delete All messages of one application (on the server, with a confirmation).

The read/unread marker lives only on your device, as it does for ntfy. Gotify itself has no read state.

Works with

  • ntfy: one inbox for both. You can use either one, or both at the same time.
  • The Notifications screen and the app badge count unread Gotify messages along with ntfy’s.
  • Deep links by category: a Gotify message about a backup opens Backups, one about a download opens Downloads, and so on, the same way as for ntfy.
  • Nextcloud Notes: Write it up in Notes works on Gotify messages too.

Tips & troubleshooting

  • Gotify is live only while the app is open. Pocket Homelab keeps a connection to Gotify’s message stream while it is in use, and catches up on anything it missed when you come back. There is no push notification for Gotify messages while the app is closed.
  • A test that ends with “(use a client token from Gotify → Clients)” means Gotify refused the token. Most often it is an application token. Client tokens start with C, application tokens with A.
  • If messages only show up after a refresh, your reverse proxy probably does not pass WebSockets through. The live stream uses Gotify’s /stream WebSocket. Allow the upgrade for that path and give it a read timeout of more than a minute, because Gotify only pings every 45 seconds.
  • The application counts in Gotify Applications are the messages loaded in the inbox. Gotify keeps older ones until they are deleted; use Load older Gotify messages to fetch them.
  • Gotify uses priorities 0 to 10. Pocket Homelab shows them as sent and calls 0 Min, 1 to 3 Low, 4 to 7 Normal and 8 and up High.
  • Application icons are loaded from the Gotify server. Until one loads, or when an application has none, a bell stands in.