ntfy
Mirror notifications from one phone to your other devices with ntfy push notifications.
ntfy is an open-source push service. You can use ntfy.sh or host your own. NotifyHook uses ntfy's JSON publishing: it posts to the server's root URL and puts the topic in the body.
1. Pick a topic#
On ntfy.sh, topics are public to anyone who guesses the name. Either use a long random name like phone-a8f3k2x9q, or reserve a topic and create an access token in your ntfy account. Subscribe to the topic in the ntfy app on the devices that should receive the alerts.
2. Create the rule#
- Webhook URL:
https://ntfy.sh/(or your server, e.g.https://ntfy.example.com/) - Source apps: select the apps to mirror, excluding ntfy itself to avoid a loop.
- Custom headers (if your topic is protected):
Authorization=Bearer {{secrets.NTFY_TOKEN}}, with thetk_…token saved in the vault asNTFY_TOKEN.
{
"topic": "phone-a8f3k2x9q",
"title": "{{appName}}: {{title}}",
"message": "{{text}}",
"tags": ["bell"],
"priority": 3
}Options#
| Field | Effect |
|---|---|
priority | 1 (min) to 5 (urgent). Use a separate rule with a higher priority for important apps. |
tags | Emoji shortcodes such as warning or moneybag show as icons. Other tags show as text. |
click | A URL to open when the notification is tapped. |
If ntfy is also installed on the phone running NotifyHook, don't add ntfy as a source app for a rule that posts to ntfy. Each forwarded notification would trigger another one.
Send a test with ⋮ → Test webhook. ntfy replies 200 with the message JSON. A 401 or 403 can mean missing credentials or insufficient write access. Messages are normally limited to 4096 bytes; oversized messages may be handled as attachments depending on the server. Use {{textPreview}} or a receiver that truncates if you need bounded messages. See ntfy's JSON publishing reference.