Gotify vs ntfy

Gotify vs ntfy: self-hosted push notifications compared

Gotify pushes to Android only; ntfy adds iPhone and 250 free messages a day on ntfy.sh. PushPiper is free for 10,000 messages a month. Both servers are open source and self-hosted, ntfy.sh also runs a hosted service, and PushPiper is fully hosted and runs on iOS 16.4 or later without an App Store install.

How Gotify and ntfy handle hosting and mobile clients

Gotify is built strictly for self-hosting. You run the Gotify server on your own hardware and connect your client devices to it. Gotify maintains an official Android app, but there's no official iPhone app. If your household or team uses Apple hardware, Gotify won't deliver push notifications to those phones out of the box. You can read more about your options in our guide to Gotify on iPhone.

The ntfy project offers both a self-hosted server and a public cloud service at ntfy.sh. It provides official apps in both the Google Play Store and Apple App Store, though the project documentation notes that the iOS client is bare bones. If you don't want to run infrastructure right away, ntfy lets you start immediately on its public instance.

Both tools are open source and cost nothing to run on your own hardware. The difference comes down to client availability and whether you want to run a server:

  • Gotify supports self-hosting only and provides an official client for Android.
  • ntfy supports self-hosting or the hosted ntfy.sh service, with apps for Android and iOS.
  • Self-hosting either service requires you to maintain server updates, network access, and SSL certificates.

Sending notifications with curl

Both services accept HTTP requests from command-line scripts, backup tasks, and webhooks. Their URL structure and authentication models differ significantly.

Sending to Gotify

Gotify uses application tokens to authenticate publications. You send a POST /message request and pass the app token in the query string or through the X-Gotify-Key header.

Change gotify.example.com to your domain and replace APP_TOKEN with your Gotify application token:

Gotify
curl "https://gotify.example.com/message?token=APP_TOKEN" \
  -F "title=Backup" -F "message=Nightly backup finished" -F "priority=5"

Sending to ntfy

The ntfy service uses a pub-sub model organized around topics. By default, you don't need an account or an API token to publish to ntfy.sh. You specify the topic name at the end of the URL path, and any device subscribed to that topic receives the alert.

Replace your-secret-topic with your chosen topic name:

ntfy
curl -d "Nightly backup finished" ntfy.sh/your-secret-topic

The free tier on the public ntfy.sh server enforces several usage caps:

  • 250 messages a day
  • Maximum message size of 4,096 bytes
  • 5 outbound emails a day
  • 30 topic subscriptions and 200 MB bandwidth a day

Feature comparison

The table below compares Gotify, ntfy, and PushPiper across hosting options, mobile platform support, free tier allowances, and authentication models.

GotifyntfyPushPiper
HostingSelf-hosted onlyntfy.sh or self-hostedHosted
iPhoneNo official appApp availableWeb app from iOS 16.4
AndroidAppAppBrowser or installed web app
Free tierFree on your server250 messages a day on ntfy.sh10,000 messages a month
AuthApp tokensTopics, reserve or protect themApp token and user key

Server maintenance and message security

Both Gotify and ntfy give you full data control when you run them on your own server, but self-hosting means taking on long-term operations. You must keep the underlying operating system patched, rotate TLS certificates before they expire, and monitor the server so you know when notification delivery stops. If the host running your notification daemon crashes, your alerts fail silently.

Security also works differently across the two systems. Gotify requires an application token for every published message, so strangers can't post to your feed even if they locate your server. On ntfy.sh, topics are open by default.

If you send system error logs, hostnames, or personal status updates through the public ntfy server, pick a long, unguessable string for your topic name. If you need guaranteed access control on ntfy, you must configure a private instance or subscribe to a paid plan on ntfy.sh.

The hosted alternative with PushPiper

Running your own notification server creates an awkward failure mode. If your homelab server or single VPS loses power or drops its network connection, the notification daemon running on that same machine goes offline with it. A notification system should live outside the infrastructure it monitors.

PushPiper is a fully hosted push service that doesn't require server maintenance. The Free plan includes 10,000 messages a month across 10 devices, with 5 MB attachments and 30 days of message history. You can check the other tiers on the PushPiper pricing page.

Instead of distributing apps through the App Store or Google Play Store, PushPiper uses Web Push through your browser. Setting it up on an iPhone takes three steps:

  1. Open pushpiper.com/app in Safari on iOS 16.4 or later.
  2. Tap Share, then tap Add to Home Screen.
  3. Launch the installed app from your home screen and sign in with Google.

Android users can install the web app to their home screen or receive notifications directly through Chrome, Edge, or Firefox.

PushPiper's API is compatible with Pushover. If you have backup scripts, cron alerts, or network monitors that use the Pushover API format, you can redirect them to PushPiper by changing the host:

curl
curl -s https://api.pushpiper.com/1/messages.json \
  --form-string "token=APP_TOKEN" \
  --form-string "user=USER_KEY" \
  --form-string "title=Backup" \
  --form-string "message=Nightly backup finished"

Replace APP_TOKEN with your 30-character application token (starts with a) and USER_KEY with your 30-character user key (starts with u). You can review all available fields in the PushPiper API reference.

PushPiper won't fit every deployment model. It cannot be self-hosted, it doesn't send SMS or make phone calls, there are no native App Store or Play Store apps yet, and it cannot trigger iOS critical alerts that break through Do Not Disturb or Focus modes. If you want a self-hosted daemon on a private network, Gotify or ntfy remains the right tool. If you prefer a managed service with a generous free plan that works on iPhones and desktops, you can open PushPiper and sign up free without a credit card.

Sources

Questions and answers

Can Gotify send notifications to an iPhone?

Gotify has no official iOS app, so it cannot deliver native push notifications to an iPhone. Gotify only provides a server and an Android app.

Are ntfy topics private on the public server?

Topics on ntfy.sh are public by default, meaning anyone who knows the topic name can listen to incoming messages or publish new ones. You must self-host an ntfy instance with authentication enabled or pay to reserve a topic on ntfy.sh to make it private.

Does PushPiper require installing an app from the App Store?

PushPiper uses standard Web Push rather than a native App Store binary. On iOS 16.4 or later, you open the app URL in Safari and tap Add to Home Screen to receive notifications.

What happens when you exceed the free message quota on ntfy.sh?

The free tier on ntfy.sh allows up to 250 messages a day. Upgrading to the $5-a-month Supporter plan raises that limit to 2,500 messages a day, or you can self-host ntfy on your own server.

Can I trigger PushPiper notifications from existing shell scripts?

PushPiper accepts standard HTTP POST requests with form-encoded or flat JSON payloads. You can trigger alerts from any script or container using curl by providing your application token, user key, and message body.

Free for 10,000 messages a month

Sign in with Google and send your first ping in a minute.

Get started for free