Areas we serve

Self-Hosted ntfy on Android: Skip Firebase for Your Own Server

You sent the test message. The phone stayed quiet. An hour later you picked it up and ten alerts arrived at once, all of them old. The script did its job. The phone app was waiting on someone else's push service, and that service does not treat your backup failure as urgent.

ntfy-android (binwiederhier/ntfy-android) is the Android client for ntfy. Apache-2.0, about 1,200 GitHub stars, same author as the server. Package name io.heckel.ntfy. Install it from Google Play, from F-Droid, or from the GitHub release APKs. If you sideload those APKs, the project publishes the signing certificate's SHA-256 fingerprint, and the same fingerprint is in the DNS TXT records for ntfy.sh. Check it before you trust a random download.

Firebase is only for the public server

Play and F-Droid builds are almost the same app. The exception is Firebase. The Play build uses Firebase Cloud Messaging only for subscriptions on ntfy.sh. It does not use Firebase for a server you run, and the F-Droid build does not include Firebase at all.

That is the whole self-hosting story on the phone. Against ntfy.sh, the Play app is allowed to nap and wait for Google. The docs are blunt about the result: without instant delivery, messages can show up minutes later, or hours later, in a pile. Against your own server, the app keeps a connection open with a foreground service, including while the screen is off. F-Droid does that for every subscription, and it hides the instant-delivery toggle because there is nothing to turn off.

You will see a permanent notification for that service. You can silence the ongoing notice from the notification channel. Leave the connection up. If a reverse proxy blocks WebSockets, the topic sits on "Reconnecting" and you will blame the server. A self-signed certificate has to be trusted in the app's certificate settings, or the phone will refuse it. Test from the topic menu with "Send test notification" before you trust a cron job.

It is not the Gotify app

Gotify's Android client speaks Gotify. This one speaks ntfy. A bare topic name in ntfy-android goes to ntfy.sh. To use the server you run, subscribe with the full URL, the same host you already put TLS on. The app can also publish from the message bar, so a phone on the bench can answer a topic without a laptop.

Priority is an Android channel, not a suggestion. Default priority and up (3 or higher) sound and vibrate. High and urgent (4 and 5) can pop over the screen. Change the sound per channel in Android's notification settings if the urgent one should actually wake you.

The same app can be a UnifiedPush distributor. Other apps on the phone then get push without Firebase, and you can point that path at your ntfy server too. Tasker and MacroDroid can catch io.heckel.ntfy.MESSAGE_RECEIVED. MacroDroid wants the package name typed in, or it swallows the intent. Mute the topic in ntfy if the automation should run without a popup.

Good fit / skip it

Good fit: you already run ntfy, or you are about to, and you want the phone to hear it without waiting on Firebase. F-Droid if you want that even for the public server.

Skip it: a browser tab is enough (there is a progressive web app), your alerts are Gotify, or you are on iOS. The iPhone app is a different repository, and Apple still wakes that one.

Bottom line

The server post was about not leaving your topics on a public mailbox. This app is how the phone subscribes to the mailbox you kept. Play will still lean on Firebase for ntfy.sh. Your own host, and the F-Droid build, keep a connection instead. Put the server on a small Canadian VPS, give it a real certificate, and let the phone talk to that name.

Talk with Swift Host if you want that ntfy server somewhere the phone can reach, with TLS in front, instead of hoping the public topic shows up before morning.

Tags:
  • ntfy
  • Android
  • Push
  • F-Droid
  • Self-Hosted

Need Help With Your Hosting?

Tell us about your application — we respond within 1 hour with honest recommendations.