ntfy/docs/subscribe/phone.md
Philipp Heckel acb0bdf619 More docs
2021-12-04 08:56:46 -05:00

3 KiB

Subscribe from your phone

You can use the ntfy Android App to receive notifications directly on your phone. Just like the server, this app is also open source. Since I don't have an iPhone or a Mac, I didn't make an iOS app yet. I'd be awesome if someone else could help out.

Android

You can get the Android app from both Google Play and from F-Droid. Both are largely identical, with the one exception that the F-Droid flavor does not use Firebase.

Instant delivery

Instant delivery is allows you to receive messages on your phone instantly, even when your phone is in doze mode, i.e. when the screen turns off, and you leave it on the desk for a while. This is achieved with a foreground service, which you'll see as a permanent notification that looks like this:

![foreground service](../static/img/foreground-service.png){ width=500 }
Instant delivery foreground notification

Android does not allow you to dismiss this notification, unless you turn off the notification channel in the settings. To do so, long-press on the foreground notification (screenshot above) and navigate to the settings. Then toggle the "Subscription Service" off:

![foreground service](../static/img/notification-settings.png){ width=500 }
Turning off the persistent instant delivery notification

Limitations without instant delivery

Without instant delivery, messages may arrive with a significant delay (sometimes many minutes, or even hours later). If you've ever picked up your phone and suddenly had 10 messages that were sent long before you know what I'm talking about.

The reason for this is Firebase Cloud Messaging (FCM). FCM is the only Google approved way to send push messages to Android devices, and it's what pretty much all apps use to deliver push notifications. Firebase is overall pretty bad at delivering messages in time, but on Android, most apps are stuck with it.

The ntfy Android app uses Firebase only for the main host ntfy.sh, and only in the Google Play flavor of the app. It won't use Firebase for any self-hosted servers, and not at all in the the F-Droid flavor.

iPhone/iOS

I almost feel devious for putting the Download on the App Store button on this page. Currently, there is no iOS app for ntfy, but it's in the works. You can track the status on GitHub.