| 1 |
# Subscribe from your phone |
| 2 |
You can use the ntfy [Android App](https://play.google.com/store/apps/details?id=io.heckel.ntfy) or [iOS app](https://apps.apple.com/us/app/ntfy/id1625396347) |
| 3 |
to receive notifications directly on your phone. Just like the server, this app is also open source, and the code is available |
| 4 |
on GitHub ([Android](https://github.com/binwiederhier/ntfy-android), [iOS](https://github.com/binwiederhier/ntfy-ios)). Feel free to |
| 5 |
contribute, or [build your own](../develop.md). |
| 6 |
|
| 7 |
<a href="https://play.google.com/store/apps/details?id=io.heckel.ntfy"><img width="170" src="../../static/img/badge-googleplay.png"></a> |
| 8 |
<a href="https://f-droid.org/en/packages/io.heckel.ntfy/"><img width="170" src="../../static/img/badge-fdroid.svg"></a> |
| 9 |
<a href="https://apps.apple.com/us/app/ntfy/id1625396347"><img width="150" src="../../static/img/badge-appstore.png"></a> |
| 10 |
|
| 11 |
You can get the Android app from [Google Play](https://play.google.com/store/apps/details?id=io.heckel.ntfy), |
| 12 |
[F-Droid](https://f-droid.org/en/packages/io.heckel.ntfy/), or via the APKs from [GitHub Releases](https://github.com/binwiederhier/ntfy-android/releases). |
| 13 |
The Google Play and F-Droid releases are largely identical, with the one exception that the F-Droid flavor does not use Firebase. |
| 14 |
The iOS app can be downloaded from the [App Store](https://apps.apple.com/us/app/ntfy/id1625396347). |
| 15 |
|
| 16 |
Alternatively, you may also want to consider using the **[progressive web app (PWA)](pwa.md)** instead of the native app. |
| 17 |
The PWA is a website that you can add to your home screen, and it will behave just like a native app. |
| 18 |
|
| 19 |
If you're downloading the APKs from [GitHub](https://github.com/binwiederhier/ntfy-android/releases), they are signed with |
| 20 |
a certificate with the following SHA-256 fingerprint: `6e145d7ae685eff75468e5067e03a6c3645453343e4e181dac8b6b17ff67489d`. |
| 21 |
You can also query the DNS TXT records for `ntfy.sh` to find this fingerprint. |
| 22 |
|
| 23 |
## Overview |
| 24 |
A picture is worth a thousand words. Here are a few screenshots showing what the app looks like. It's all pretty |
| 25 |
straight forward. You can add topics and as soon as you add them, you can [publish messages](../publish.md) to them. |
| 26 |
|
| 27 |
<div id="android-screenshots" class="screenshots"> |
| 28 |
<a href="../../static/img/android-screenshot-main.png"><img src="../../static/img/android-screenshot-main.png"/></a> |
| 29 |
<a href="../../static/img/android-screenshot-detail.png"><img src="../../static/img/android-screenshot-detail.png"/></a> |
| 30 |
<a href="../../static/img/android-screenshot-pause.png"><img src="../../static/img/android-screenshot-pause.png"/></a> |
| 31 |
<a href="../../static/img/android-screenshot-add.png"><img src="../../static/img/android-screenshot-add.png"/></a> |
| 32 |
<a href="../../static/img/android-screenshot-add-instant.png"><img src="../../static/img/android-screenshot-add-instant.png"/></a> |
| 33 |
<a href="../../static/img/android-screenshot-add-other.png"><img src="../../static/img/android-screenshot-add-other.png"/></a> |
| 34 |
</div> |
| 35 |
|
| 36 |
If those screenshots are still not enough, here's a video: |
| 37 |
|
| 38 |
<figure> |
| 39 |
<video controls muted autoplay loop width="650" src="../../static/img/android-video-overview.mp4"></video> |
| 40 |
<figcaption>Sending push notifications to your Android phone</figcaption> |
| 41 |
</figure> |
| 42 |
|
| 43 |
## Message priority |
| 44 |
_Supported on:_ :material-android: :material-apple: |
| 45 |
|
| 46 |
When you [publish messages](../publish.md#message-priority) to a topic, you can **define a priority**. This priority defines |
| 47 |
how urgently Android will notify you about the notification, and whether they make a sound and/or vibrate. |
| 48 |
|
| 49 |
By default, messages with default priority or higher (>= 3) will vibrate and make a sound. Messages with high or urgent |
| 50 |
priority (>= 4) will also show as pop-over, like so: |
| 51 |
|
| 52 |
<figure markdown> |
| 53 |
{ width=500 } |
| 54 |
<figcaption>High and urgent notifications show as pop-over</figcaption> |
| 55 |
</figure> |
| 56 |
|
| 57 |
You can change these settings in Android by long-pressing on the app, and tapping "Notifications", or from the "Settings" |
| 58 |
menu under "Channel settings". There is one notification channel for each priority: |
| 59 |
|
| 60 |
<figure markdown> |
| 61 |
{ width=500 } |
| 62 |
<figcaption>Per-priority channels</figcaption> |
| 63 |
</figure> |
| 64 |
|
| 65 |
Per notification channel, you can configure a **channel-specific sound**, whether to **override the Do Not Disturb (DND)** |
| 66 |
setting, and other settings such as popover or notification dot: |
| 67 |
|
| 68 |
<figure markdown> |
| 69 |
{ width=500 } |
| 70 |
<figcaption>Per-priority sound/vibration settings</figcaption> |
| 71 |
</figure> |
| 72 |
|
| 73 |
## Instant delivery |
| 74 |
_Supported on:_ :material-android: |
| 75 |
|
| 76 |
Instant delivery allows you to receive messages on your phone instantly, **even when your phone is in doze mode**, i.e. |
| 77 |
when the screen turns off, and you leave it on the desk for a while. This is achieved with a foreground service, which |
| 78 |
you'll see as a permanent notification that looks like this: |
| 79 |
|
| 80 |
<figure markdown> |
| 81 |
{ width=500 } |
| 82 |
<figcaption>Instant delivery foreground notification</figcaption> |
| 83 |
</figure> |
| 84 |
|
| 85 |
To turn off this notification, long-press on the foreground notification (screenshot above) and navigate to the |
| 86 |
settings. Then toggle the "Subscription Service" off: |
| 87 |
|
| 88 |
<figure markdown> |
| 89 |
{ width=500 } |
| 90 |
<figcaption>Turning off the persistent instant delivery notification</figcaption> |
| 91 |
</figure> |
| 92 |
|
| 93 |
**Limitations without instant delivery**: Without instant delivery, **messages may arrive with a significant delay** |
| 94 |
(sometimes many minutes, or even hours later). If you've ever picked up your phone and |
| 95 |
suddenly had 10 messages that were sent long before you know what I'm talking about. |
| 96 |
|
| 97 |
The reason for this is [Firebase Cloud Messaging (FCM)](https://firebase.google.com/docs/cloud-messaging). FCM is the |
| 98 |
*only* Google approved way to send push messages to Android devices, and it's what pretty much all apps use to deliver push |
| 99 |
notifications. Firebase is overall pretty bad at delivering messages in time, but on Android, most apps are stuck with it. |
| 100 |
|
| 101 |
The ntfy Android app uses Firebase only for the main host `ntfy.sh`, and only in the Google Play flavor of the app. |
| 102 |
It won't use Firebase for any self-hosted servers, and not at all in the F-Droid flavor. |
| 103 |
|
| 104 |
!!! info "F-Droid: Always instant delivery" |
| 105 |
Since the F-Droid build does not include Firebase, **all subscriptions use instant delivery by default**, and |
| 106 |
there is no option to disable it. The F-Droid app hides all mentions of "instant delivery" in the UI, since |
| 107 |
showing options that can't be changed would only be confusing. |
| 108 |
|
| 109 |
## Publishing messages |
| 110 |
_Supported on:_ :material-android: |
| 111 |
|
| 112 |
The Android app allows you to **publish messages directly from the app**, without needing to use curl or any other |
| 113 |
tool. When enabled in the settings (Settings → General → Show message bar), a **message bar** appears at the bottom |
| 114 |
of the topic view (it's enabled by default). You can type a message and tap the send button to publish it instantly. |
| 115 |
If the message bar is disabled, you can tap the floating action button (FAB) at the bottom right instead. |
| 116 |
|
| 117 |
For more options, tap the expand button next to the send button to open the full **publish dialog**. The dialog lets |
| 118 |
you compose a full notification with all available options, including title, tags, priority, click URL, email |
| 119 |
forwarding, delayed delivery, attachments, Markdown formatting, and phone calls. |
| 120 |
|
| 121 |
<div id="publish-screenshots" class="screenshots"> |
| 122 |
<a href="../../static/img/android-screenshot-publish-message-bar.jpg"><img src="../../static/img/android-screenshot-publish-message-bar.jpg"/></a> |
| 123 |
<a href="../../static/img/android-screenshot-publish-dialog.jpg"><img src="../../static/img/android-screenshot-publish-dialog.jpg"/></a> |
| 124 |
</div> |
| 125 |
|
| 126 |
## Share to topic |
| 127 |
_Supported on:_ :material-android: |
| 128 |
|
| 129 |
You can share files to a topic using Android's "Share" feature. This works in almost any app that supports sharing files |
| 130 |
or text, and it's useful for sending yourself links, files or other things. The feature remembers a few of the last topics |
| 131 |
you shared content to and lists them at the bottom. |
| 132 |
|
| 133 |
The feature is pretty self-explanatory, and one picture says more than a thousand words. So here are two pictures: |
| 134 |
|
| 135 |
<div id="share-to-topic-screenshots" class="screenshots"> |
| 136 |
<a href="../../static/img/android-screenshot-share-1.jpg"><img src="../../static/img/android-screenshot-share-1.jpg"/></a> |
| 137 |
<a href="../../static/img/android-screenshot-share-2.jpg"><img src="../../static/img/android-screenshot-share-2.jpg"/></a> |
| 138 |
</div> |
| 139 |
|
| 140 |
## ntfy:// links |
| 141 |
_Supported on:_ :material-android: |
| 142 |
|
| 143 |
The ntfy Android app supports deep linking directly to topics. This is useful when integrating with [automation apps](#automation-apps) |
| 144 |
such as [MacroDroid](https://play.google.com/store/apps/details?id=com.arlosoft.macrodroid) or [Tasker](https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm), |
| 145 |
or to simply directly link to a topic from a mobile website. |
| 146 |
|
| 147 |
!!! info |
| 148 |
Android deep linking of http/https links is very brittle and limited, which is why something like `https://<host>/<topic>/subscribe` is |
| 149 |
**not possible**, and instead `ntfy://` links have to be used. More details in [issue #20](https://github.com/binwiederhier/ntfy/issues/20). |
| 150 |
|
| 151 |
**Supported link formats:** |
| 152 |
|
| 153 |
| Link format | Example | Description | |
| 154 |
|---------------------------------------------------------------------------------|-------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |
| 155 |
| <span style="white-space: nowrap">`ntfy://<host>/<topic>`</span> | `ntfy://ntfy.sh/mytopic` | Directly opens the Android app detail view for the given topic and server. Subscribes to the topic if not already subscribed. This is equivalent to the web view `https://ntfy.sh/mytopic` (HTTPS!) | |
| 156 |
| <span style="white-space: nowrap">`ntfy://<host>/<topic>?display=<name>`</span> | `ntfy://ntfy.sh/mytopic?display=My+Topic` | Same as above, but also defines a display name for the topic. | |
| 157 |
| <span style="white-space: nowrap">`ntfy://<host>/<topic>?secure=false`</span> | `ntfy://example.com/mytopic?secure=false` | Same as above, except that this will use HTTP instead of HTTPS as topic URL. This is equivalent to the web view `http://example.com/mytopic` (HTTP!) | |
| 158 |
|
| 159 |
## Advanced settings |
| 160 |
|
| 161 |
### Custom headers |
| 162 |
_Supported on:_ :material-android: |
| 163 |
|
| 164 |
If your ntfy server is behind an **authenticated proxy or tunnel** (e.g., Cloudflare Access, Tailscale Funnel, or |
| 165 |
a reverse proxy with basic auth), you can configure custom HTTP headers that will be sent with every request to |
| 166 |
that server. You could set headers such as `Authorization`, `CF-Access-Client-Id`, or any other headers required by |
| 167 |
your setup. To add custom headers, go to **Settings → Advanced → Custom headers**. |
| 168 |
|
| 169 |
<div id="custom-headers-screenshots" class="screenshots"> |
| 170 |
<a href="../../static/img/android-screenshot-custom-headers.jpg"><img src="../../static/img/android-screenshot-custom-headers.jpg"/></a> |
| 171 |
<a href="../../static/img/android-screenshot-custom-headers-add.jpg"><img src="../../static/img/android-screenshot-custom-headers-add.jpg"/></a> |
| 172 |
</div> |
| 173 |
|
| 174 |
!!! warning |
| 175 |
If you have a user configured for a server, you cannot add an `Authorization` header for that server, as ntfy |
| 176 |
sets this header automatically. Similarly, if you have a custom `Authorization` header, you cannot add a user |
| 177 |
for that server. |
| 178 |
|
| 179 |
### Manage certificates |
| 180 |
_Supported on:_ :material-android: |
| 181 |
|
| 182 |
If you're running a self-hosted ntfy server with a **self-signed certificate** or need to use **mutual TLS (mTLS)** |
| 183 |
for client authentication, you can manage certificates in the app settings. |
| 184 |
|
| 185 |
Go to **Settings → Advanced → Manage certificates** to: |
| 186 |
|
| 187 |
- **Add trusted certificates**: Import a server certificate (PEM format) to trust when connecting to your ntfy server. |
| 188 |
This is useful for self-signed certificates that are not trusted by the Android system. |
| 189 |
- **Add client certificates**: Import a client certificate (PKCS#12 format) for mutual TLS authentication. This |
| 190 |
certificate will be presented to the server when connecting. |
| 191 |
|
| 192 |
When you subscribe to a topic on a server with an untrusted certificate, the app will show a security warning and |
| 193 |
allow you to review and trust the certificate. |
| 194 |
|
| 195 |
<div id="certificates-screenshots" class="screenshots"> |
| 196 |
<a href="../../static/img/android-screenshot-certs-manage.jpg"><img src="../../static/img/android-screenshot-certs-manage.jpg"/></a> |
| 197 |
<a href="../../static/img/android-screenshot-certs-warning-dialog.jpg"><img src="../../static/img/android-screenshot-certs-warning-dialog.jpg"/></a> |
| 198 |
</div> |
| 199 |
|
| 200 |
### Language |
| 201 |
_Supported on:_ :material-android: |
| 202 |
|
| 203 |
The Android app supports many languages and uses the **system language by default**. If you'd like to use the app in |
| 204 |
a different language than your system, you can override it in **Settings → General → Language**. |
| 205 |
|
| 206 |
<div id="language-screenshots" class="screenshots"> |
| 207 |
<a href="../../static/img/android-screenshot-language-selection.jpg"><img src="../../static/img/android-screenshot-language-selection.jpg"/></a> |
| 208 |
<a href="../../static/img/android-screenshot-language-german.jpg"><img src="../../static/img/android-screenshot-language-german.jpg"/></a> |
| 209 |
<a href="../../static/img/android-screenshot-language-hebrew.jpg"><img src="../../static/img/android-screenshot-language-hebrew.jpg"/></a> |
| 210 |
<a href="../../static/img/android-screenshot-language-chinese.jpg"><img src="../../static/img/android-screenshot-language-chinese.jpg"/></a> |
| 211 |
</div> |
| 212 |
|
| 213 |
The app currently supports over 30 languages, including English, German, French, Spanish, Chinese, Japanese, and many |
| 214 |
more. Languages with more than 80% of strings translated are shown in the language picker. |
| 215 |
|
| 216 |
!!! tip "Help translate ntfy" |
| 217 |
If you'd like to help translate ntfy into your language or improve existing translations, please visit the |
| 218 |
[ntfy Weblate project](https://hosted.weblate.org/projects/ntfy/). Contributions are very welcome! |
| 219 |
|
| 220 |
## Integrations |
| 221 |
|
| 222 |
### UnifiedPush |
| 223 |
_Supported on:_ :material-android: |
| 224 |
|
| 225 |
[UnifiedPush](https://unifiedpush.org) is a standard for receiving push notifications without using the Google-owned |
| 226 |
[Firebase Cloud Messaging (FCM)](https://firebase.google.com/docs/cloud-messaging) service. It puts push notifications |
| 227 |
in the control of the user. ntfy can act as a **UnifiedPush distributor**, forwarding messages to apps that support it. |
| 228 |
|
| 229 |
To use ntfy as a distributor, simply select it in one of the [supported apps](https://unifiedpush.org/users/apps/). |
| 230 |
That's it. It's a one-step installation 😀. If desired, you can select your own [selfhosted ntfy server](../install.md) |
| 231 |
to handle messages. Here's an example with [FluffyChat](https://fluffychat.im/): |
| 232 |
|
| 233 |
<div id="unifiedpush-screenshots" class="screenshots"> |
| 234 |
<a href="../../static/img/android-screenshot-unifiedpush-fluffychat.jpg"><img src="../../static/img/android-screenshot-unifiedpush-fluffychat.jpg"/></a> |
| 235 |
<a href="../../static/img/android-screenshot-unifiedpush-subscription.jpg"><img src="../../static/img/android-screenshot-unifiedpush-subscription.jpg"/></a> |
| 236 |
<a href="../../static/img/android-screenshot-unifiedpush-settings.jpg"><img src="../../static/img/android-screenshot-unifiedpush-settings.jpg"/></a> |
| 237 |
</div> |
| 238 |
|
| 239 |
### Automation apps |
| 240 |
_Supported on:_ :material-android: |
| 241 |
|
| 242 |
The ntfy Android app integrates nicely with automation apps such as [MacroDroid](https://play.google.com/store/apps/details?id=com.arlosoft.macrodroid) |
| 243 |
or [Tasker](https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm). Using Android intents, you can |
| 244 |
**react to incoming messages**, as well as **send messages**. |
| 245 |
|
| 246 |
#### React to incoming messages |
| 247 |
To react on incoming notifications, you have to register to intents with the `io.heckel.ntfy.MESSAGE_RECEIVED` action (see |
| 248 |
[code for details](https://github.com/binwiederhier/ntfy-android/blob/main/app/src/main/java/io/heckel/ntfy/msg/BroadcastService.kt)). |
| 249 |
Here's an example using [MacroDroid](https://play.google.com/store/apps/details?id=com.arlosoft.macrodroid) |
| 250 |
and [Tasker](https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm), but any app that can catch |
| 251 |
broadcasts is supported: |
| 252 |
|
| 253 |
<div id="integration-screenshots-receive-1" class="screenshots"> |
| 254 |
<a href="../../static/img/android-screenshot-macrodroid-overview.png"><img src="../../static/img/android-screenshot-macrodroid-overview.png"/></a> |
| 255 |
<a href="../../static/img/android-screenshot-macrodroid-trigger.png"><img src="../../static/img/android-screenshot-macrodroid-trigger.png"/></a> |
| 256 |
<a href="../../static/img/android-screenshot-macrodroid-action.png"><img src="../../static/img/android-screenshot-macrodroid-action.png"/></a> |
| 257 |
</div> |
| 258 |
|
| 259 |
<div id="integration-screenshots-receive-2" class="screenshots"> |
| 260 |
<a href="../../static/img/android-screenshot-tasker-profiles.png"><img src="../../static/img/android-screenshot-tasker-profiles.png"/></a> |
| 261 |
<a href="../../static/img/android-screenshot-tasker-event-edit.png"><img src="../../static/img/android-screenshot-tasker-event-edit.png"/></a> |
| 262 |
<a href="../../static/img/android-screenshot-tasker-task-edit.png"><img src="../../static/img/android-screenshot-tasker-task-edit.png"/></a> |
| 263 |
<a href="../../static/img/android-screenshot-tasker-action-edit.png"><img src="../../static/img/android-screenshot-tasker-action-edit.png"/></a> |
| 264 |
</div> |
| 265 |
|
| 266 |
For MacroDroid, be sure to type in the package name `io.heckel.ntfy`, otherwise intents may be silently swallowed. |
| 267 |
If you're using topics to drive automation, you'll likely want to mute the topic in the ntfy app. This will prevent |
| 268 |
notification popups: |
| 269 |
|
| 270 |
<figure markdown> |
| 271 |
{ width=500 } |
| 272 |
<figcaption>Muting notifications to prevent popups</figcaption> |
| 273 |
</figure> |
| 274 |
|
| 275 |
Here's a list of extras you can access. Most likely, you'll want to filter for `topic` and react on `message`: |
| 276 |
|
| 277 |
| Extra name | Type | Example | Description | |
| 278 |
|----------------------|------------------------------|------------------------------------------|------------------------------------------------------------------------------------| |
| 279 |
| `id` | *String* | `bP8dMjO8ig` | Randomly chosen message identifier (likely not very useful for task automation) | |
| 280 |
| `base_url` | *String* | `https://ntfy.sh` | Root URL of the ntfy server this message came from | |
| 281 |
| `topic` ❤️ | *String* | `mytopic` | Topic name; **you'll likely want to filter for a specific topic** | |
| 282 |
| `muted` | *Boolean* | `true` | Indicates whether the subscription was muted in the app | |
| 283 |
| `muted_str` | *String (`true` or `false`)* | `true` | Same as `muted`, but as string `true` or `false` | |
| 284 |
| `time` | *Int* | `1635528741` | Message date time, as Unix time stamp | |
| 285 |
| `title` | *String* | `Some title` | Message [title](../publish.md#message-title); may be empty if not set | |
| 286 |
| `message` ❤️ | *String* | `Some message` | Message body; **this is likely what you're interested in** | |
| 287 |
| `message_bytes` | *ByteArray* | `(binary data)` | Message body as binary data | |
| 288 |
| `encoding`️ | *String* | - | Message encoding (empty or "base64") | |
| 289 |
| `tags` | *String* | `tag1,tag2,..` | Comma-separated list of [tags](../publish.md#tags-emojis) | |
| 290 |
| `tags_map` | *String* | `0=tag1,1=tag2,..` | Map of tags to make it easier to map first, second, ... tag | |
| 291 |
| `priority` | *Int (between 1-5)* | `4` | Message [priority](../publish.md#message-priority) with 1=min, 3=default and 5=max | |
| 292 |
| `click` | *String* | `https://google.com` | [Click action](../publish.md#click-action) URL, or empty if not set | |
| 293 |
| `attachment_name` | *String* | `attachment.jpg` | Filename of the attachment; may be empty if not set | |
| 294 |
| `attachment_type` | *String* | `image/jpeg` | Mime type of the attachment; may be empty if not set | |
| 295 |
| `attachment_size` | *Long* | `9923111` | Size in bytes of the attachment; may be zero if not set | |
| 296 |
| `attachment_expires` | *Long* | `1655514244` | Expiry date as Unix timestamp of the attachment URL; may be zero if not set | |
| 297 |
| `attachment_url` | *String* | `https://ntfy.sh/file/afUbjadfl7ErP.jpg` | URL of the attachment; may be empty if not set | |
| 298 |
|
| 299 |
#### Send messages using intents |
| 300 |
To send messages from other apps (such as [MacroDroid](https://play.google.com/store/apps/details?id=com.arlosoft.macrodroid) |
| 301 |
and [Tasker](https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm)), you can |
| 302 |
broadcast an intent with the `io.heckel.ntfy.SEND_MESSAGE` action. The ntfy Android app will forward the intent as a HTTP |
| 303 |
POST request to [publish a message](../publish.md). This is primarily useful for apps that do not support HTTP POST/PUT |
| 304 |
(like MacroDroid). In Tasker, you can simply use the "HTTP Request" action, which is a little easier and also works if |
| 305 |
ntfy is not installed. |
| 306 |
|
| 307 |
Here's what that looks like: |
| 308 |
|
| 309 |
<div id="integration-screenshots-send" class="screenshots"> |
| 310 |
<a href="../../static/img/android-screenshot-macrodroid-send-macro.png"><img src="../../static/img/android-screenshot-macrodroid-send-macro.png"/></a> |
| 311 |
<a href="../../static/img/android-screenshot-macrodroid-send-action.png"><img src="../../static/img/android-screenshot-macrodroid-send-action.png"/></a> |
| 312 |
<a href="../../static/img/android-screenshot-tasker-profile-send.png"><img src="../../static/img/android-screenshot-tasker-profile-send.png"/></a> |
| 313 |
<a href="../../static/img/android-screenshot-tasker-task-edit-post.png"><img src="../../static/img/android-screenshot-tasker-task-edit-post.png"/></a> |
| 314 |
<a href="../../static/img/android-screenshot-tasker-action-http-post.png"><img src="../../static/img/android-screenshot-tasker-action-http-post.png"/></a> |
| 315 |
</div> |
| 316 |
|
| 317 |
The following intent extras are supported when for the intent with the `io.heckel.ntfy.SEND_MESSAGE` action: |
| 318 |
|
| 319 |
| Extra name | Required | Type | Example | Description | |
| 320 |
|--------------|----------|-------------------------------|-------------------|------------------------------------------------------------------------------------| |
| 321 |
| `base_url` | - | *String* | `https://ntfy.sh` | Root URL of the ntfy server this message came from, defaults to `https://ntfy.sh` | |
| 322 |
| `topic` ❤️ | ✔ | *String* | `mytopic` | Topic name; **you must set this** | |
| 323 |
| `title` | - | *String* | `Some title` | Message [title](../publish.md#message-title); may be empty if not set | |
| 324 |
| `message` ❤️ | ✔ | *String* | `Some message` | Message body; **you must set this** | |
| 325 |
| `tags` | - | *String* | `tag1,tag2,..` | Comma-separated list of [tags](../publish.md#tags-emojis) | |
| 326 |
| `priority` | - | *String or Int (between 1-5)* | `4` | Message [priority](../publish.md#message-priority) with 1=min, 3=default and 5=max | |
| 327 |
|
| 328 |
## Troubleshooting |
| 329 |
|
| 330 |
### Connection error dialog |
| 331 |
_Supported on:_ :material-android: |
| 332 |
|
| 333 |
If the app has trouble connecting to a ntfy server, a **warning icon** will appear in the app bar. Tapping it opens |
| 334 |
the **connection error dialog**, which shows detailed information about the connection problem and helps you diagnose |
| 335 |
the issue. |
| 336 |
|
| 337 |
<div id="connection-error-screenshots" class="screenshots"> |
| 338 |
<a href="../../static/img/android-screenshot-connection-error-warning.jpg"><img src="../../static/img/android-screenshot-connection-error-warning.jpg"/></a> |
| 339 |
<a href="../../static/img/android-screenshot-connection-error-dialog.jpg"><img src="../../static/img/android-screenshot-connection-error-dialog.jpg"/></a> |
| 340 |
</div> |
| 341 |
|
| 342 |
Common connection errors include: |
| 343 |
|
| 344 |
| Error | Description | |
| 345 |
|-------|-------------| |
| 346 |
| Connection refused | The server may be down or the address may be incorrect | |
| 347 |
| WebSocket not supported | The server may not support WebSocket connections, or a proxy is blocking them | |
| 348 |
| Not authorized (401/403) | Username/password may be incorrect, or access credentials have expired | |
| 349 |
| Certificate not trusted | The server is using a self-signed certificate (see [Manage certificates](#manage-certificates)) | |
| 350 |
|
| 351 |
If you're having persistent connection issues, you can also check the app logs under **Settings → Advanced → Record logs** |
| 352 |
and share them for debugging. |