ntfy's apps and tools
ntfy is another notification server. Skirl understands the way ntfy's apps and tools send and read messages, so ntfy's Android app, its iPhone app, its command-line tool and most programs made for ntfy work with Skirl once you give them your Skirl's address, https://notify.example.com, instead of ntfy's.
You do not need any of them. Skirl's own app, the web app on your phone's Home Screen, gets notifications, keeps read and unread the same on all your devices and shows which device got each message: Phones and browsers.
What works#
| Works with Skirl | Does not | |
|---|---|---|
| ntfy's Android app | Adding Skirl's topics, signing in, instant delivery, sending from the app, pictures, buttons | UnifiedPush |
| ntfy's iPhone app | Reading while the app is open, sending | Notifications while the app is closed |
| ntfy's command-line tool | Sending and reading, with a token or a password | E-mail and phone calls; its commands for running an ntfy server |
| Programs made for ntfy | Sending and reading by changing the address | E-mail and phone calls |
The ntfy Android app#
Adding your Skirl's topics#
- In the app, subscribe to a topic: type the topic's name, turn on Use another server and type your Skirl's address,
https://notify.example.com. - If the topic is not public, the app asks for a user name and password: give your Skirl user name and password.
The app keeps one connection open to your Skirl for all its topics there and gets each message the moment it is sent, without going through ntfy.sh or Google. Sending from the app works too, with title, tags, priority, a delay, a link and a file; pictures show in the app, and buttons and deleted or cleared messages work as on an ntfy server.
Signing in with a token#
The app signs in with a user name and password. To use a token instead, so your password is not saved on the phone:
- In Skirl, Settings → Access tokens → New token: tick Read messages (and Send messages if you send from the app), then Create token and copy it: Tokens and access.
- In the app, Settings → Advanced → Custom headers: add, for your Skirl's address, the header
Authorizationwith the valueBearer tk_replace_with_your_token. - Leave the user name for that server empty: the app does not let you add this header for a server that has a user.
A token limited to one topic works only if the app reads no other topic from your Skirl: the app reads them all over its one connection, and Skirl refuses the whole connection when the token may not read one of them.
When it stops working#
- A wrong saved password. The app tries again and again, and each try counts as a failed sign-in from the phone's address. After 10 in 10 minutes Skirl refuses that user name's password from that address for the rest of the 10 minutes, the right one too, and tokens from that address as well; every device behind the same home router shares the address, but other people there still sign in with their own passwords. Correct the password in the app: Rate limits.
- UnifiedPush. Skirl does not support it. If other apps on the phone use UnifiedPush through ntfy and your Skirl is the ntfy app's default server, the app adds a topic Skirl does not know to its connection, and Skirl refuses the whole connection: no topic on your Skirl gets messages any more. Keep another default server in the ntfy app, or do not use UnifiedPush with it.
- After Skirl restarts, the app's usual connection comes back at once; a WebSocket connection (an option in the app) can take up to three minutes.
- Every open connection counts against the open subscriptions a person or an address may have: Rate limits.
The ntfy iPhone app#
While the app is open it works: add your Skirl's topics with Use another server and your Skirl's address, sign in with your user name and password, see new messages when the list opens or you pull to refresh, and send.
While it is closed, notifications from Skirl come late or not at all. ntfy's iPhone app learns of new messages at once only through ntfy.sh, which an ntfy server tells about each message (its "upstream" setting); Skirl tells no one (Privacy). ntfy's own documentation says that without it, delivery "can take hours".
Use Skirl's own app on the Home Screen instead: it gets notifications on iOS 16.4 and later (Phones and browsers).
The ntfy command-line tool#
ntfy's tool sends and reads with a token. Put your Skirl's address and a token in its settings file, client.yml: on Linux ~/.config/ntfy/client.yml (/etc/ntfy/client.yml for root), on macOS ~/Library/Application Support/ntfy/client.yml, on Windows %AppData%\ntfy\client.yml.
default-host: https://notify.example.com
default-token: tk_replace_with_your_tokenThe token must be allowed to send to the topic, to read it, or both: make it in Settings → Access tokens. Then, to send:
ntfy publish --title "Backup done" backups "Nightly backup finished"To print every new message on the topic as it comes, until you stop it:
ntfy subscribe backupsTo run a command for each message ($m is the message's text):
ntfy subscribe backups 'notify-send "$m"'Without the settings file, give the whole address, https://notify.example.com/backups, in place of backups, and sign in on each command with the tool's token option or with your user name and password.
The tool's e-mail and phone-call options are refused (Error messages). Its commands for running an ntfy server (serve, user, access, token) manage an ntfy server, not Skirl: in Skirl that is the app's Admin pages or the skirl commands.
Other programs made for ntfy#
A program with an ntfy option sends to Skirl when you give it your Skirl's address and the topic, and a token: how a tool signs in is in Tokens and access. Tokens look like ntfy's (they start with tk_), so tools that check for that take them.
Many have their own page with the exact steps, which Connect a system shows too: Connecting your systems.
What is different from an ntfy server#
- Topics are private until you share them. On a new ntfy server anyone may read and send to any topic. On Skirl a new topic can be used only by the person who made it and by admins, until it is shared with people or opened to anyone without signing in: Topics.
- Messages are kept 30 days, not ntfy's 12 hours, and each topic can keep them longer or shorter: the inbox is your history. Files are kept 7 days, not 3 hours.
- Topic names do not care about capitals:
Alertsandalertsare one topic, and each program sees the spelling it used. - Tokens can be limited to one topic and to reading or sending. A token can never make or extend a token: that takes the password.
- Deleting a message removes it, with its file, instead of leaving it for apps to hide.
- More names are taken by Skirl's own pages, such as
admin,inbox,helpandconnect, and no topic name has a dot: Error messages. - Not there: e-mail and phone calls (refused, as by an ntfy server without them), UnifiedPush, passing messages on to ntfy.sh, signing up by yourself (an admin adds people), and ntfy's own web app: Skirl has its own.
Moving from an ntfy server#
Skirl starts empty: people, access, tokens and old messages do not carry over. Set them up again:
- People: Admin → People → Add person makes each one, with an Initial password you type or Generate and hand over (People and roles), or use the skirl commands.
- Access (ntfy's access lists): a topic's Access tab gives people the right to read or send; its Settings tab, Without signing in, says what anyone may do without signing in (Topics).
- Tokens: make new ones. On a topic's Send to this topic tab, New token makes one that may only send there and puts it in the steps shown. Then put each new token where the old one was.
- Old messages are not brought over. ntfy keeps its own until they expire, so running both side by side for a day while you move each program loses nothing.
Point each program at your Skirl's address, with its new token, and check it with Connect a system: Connecting your systems.