From 64590343f5e6978b99b61b0d870991fd7f78436b Mon Sep 17 00:00:00 2001 From: Philipp Heckel Date: Fri, 17 Jun 2022 21:05:31 -0400 Subject: [PATCH] Docs for #329 --- docs/releases.md | 9 ++++++++- docs/subscribe/phone.md | 38 +++++++++++++++++++++----------------- 2 files changed, 29 insertions(+), 18 deletions(-) diff --git a/docs/releases.md b/docs/releases.md index e4b32e5..02da2ff 100644 --- a/docs/releases.md +++ b/docs/releases.md @@ -6,9 +6,17 @@ and the [ntfy Android app](https://github.com/binwiederhier/ntfy-android/release ## ntfy Android app v1.14.0 (UNRELEASED) +**Bugs:** + +* Fixed: Long-click selecting of notifications scrolls to the top (#235, thanks to [@wunter8](https://github.com/wunter8)) +* Add attachment and click URL extras to MESSAGE_RECEIVED broadcast (#330, thanks to [@wunter8](https://github.com/wunter8)) + **Additional translations:** * Italian (thanks to [@Genio2003](https://hosted.weblate.org/user/Genio2003/)) +* Dutch (thanks to [@SchoNie](https://hosted.weblate.org/user/SchoNie/)) + +Thank you to [@wunter8](https://github.com/wunter8) for proactively picking up some Android tickets, and fixing them! You rock! --> @@ -37,7 +45,6 @@ CLI is now available via Scoop, and ntfy is now natively supported in Uptime Kum * Add clarifying comments to base-url ([#322](https://github.com/binwiederhier/ntfy/issues/322), thanks to [@milksteakjellybeans](https://github.com/milksteakjellybeans) for reporting) * Update FAQ for iOS app ([#321](https://github.com/binwiederhier/ntfy/issues/321), thanks to [@milksteakjellybeans](https://github.com/milksteakjellybeans) for reporting) - ## ntfy iOS app v1.2 Released June 16, 2022 diff --git a/docs/subscribe/phone.md b/docs/subscribe/phone.md index 4fe4f45..440dbbe 100644 --- a/docs/subscribe/phone.md +++ b/docs/subscribe/phone.md @@ -180,23 +180,27 @@ notification popups: Here's a list of extras you can access. Most likely, you'll want to filter for `topic` and react on `message`: -| Extra name | Type | Example | Description | -|-----------------|------------------------------|--------------------|------------------------------------------------------------------------------------| -| `id` | *String* | `bP8dMjO8ig` | Randomly chosen message identifier (likely not very useful for task automation) | -| `base_url` | *String* | `https://ntfy.sh` | Root URL of the ntfy server this message came from | -| `topic` ❤️ | *String* | `mytopic` | Topic name; **you'll likely want to filter for a specific topic** | -| `muted` | *Boolean* | `true` | Indicates whether the subscription was muted in the app | -| `muted_str` | *String (`true` or `false`)* | `true` | Same as `muted`, but as string `true` or `false` | -| `time` | *Int* | `1635528741` | Message date time, as Unix time stamp | -| `title` | *String* | `Some title` | Message [title](../publish.md#message-title); may be empty if not set | -| `message` ❤️ | *String* | `Some message` | Message body; **this is likely what you're interested in** | -| `message_bytes` | *ByteArray* | `(binary data)` | Message body as binary data | -| `encoding`️ | *String* | - | Message encoding (empty or "base64") | -| `tags` | *String* | `tag1,tag2,..` | Comma-separated list of [tags](../publish.md#tags-emojis) | -| `tags_map` | *String* | `0=tag1,1=tag2,..` | Map of tags to make it easier to map first, second, ... tag | -| `priority` | *Int (between 1-5)* | `4` | Message [priority](../publish.md#message-priority) with 1=min, 3=default and 5=max | -| `attachment_name`| *String* | `attachment.jpg` | The filename of the attachment; may be empty if not set | -| `attachment_url`| *String* | `https://ntfy.sh/file/afUbjadfl7ErP.jpg` | The URL of the attachment on the server; may be empty if not set | +| Extra name | Type | Example | Description | +|----------------------|------------------------------|------------------------------------------|------------------------------------------------------------------------------------| +| `id` | *String* | `bP8dMjO8ig` | Randomly chosen message identifier (likely not very useful for task automation) | +| `base_url` | *String* | `https://ntfy.sh` | Root URL of the ntfy server this message came from | +| `topic` ❤️ | *String* | `mytopic` | Topic name; **you'll likely want to filter for a specific topic** | +| `muted` | *Boolean* | `true` | Indicates whether the subscription was muted in the app | +| `muted_str` | *String (`true` or `false`)* | `true` | Same as `muted`, but as string `true` or `false` | +| `time` | *Int* | `1635528741` | Message date time, as Unix time stamp | +| `title` | *String* | `Some title` | Message [title](../publish.md#message-title); may be empty if not set | +| `message` ❤️ | *String* | `Some message` | Message body; **this is likely what you're interested in** | +| `message_bytes` | *ByteArray* | `(binary data)` | Message body as binary data | +| `encoding`️ | *String* | - | Message encoding (empty or "base64") | +| `tags` | *String* | `tag1,tag2,..` | Comma-separated list of [tags](../publish.md#tags-emojis) | +| `tags_map` | *String* | `0=tag1,1=tag2,..` | Map of tags to make it easier to map first, second, ... tag | +| `priority` | *Int (between 1-5)* | `4` | Message [priority](../publish.md#message-priority) with 1=min, 3=default and 5=max | +| `click` | *String* | `https://google.com` | [Click action](../publish.md#click-action) URL, or empty if not set | +| `attachment_name` | *String* | `attachment.jpg` | Filename of the attachment; may be empty if not set | +| `attachment_type` | *String* | `image/jpeg` | Mime type of the attachment; may be empty if not set | +| `attachment_size` | *Long* | `9923111` | Size in bytes of the attachment; may be zero if not set | +| `attachment_expires` | *Long* | `1655514244` | Expiry date as Unix timestamp of the attachment URL; may be zero if not set | +| `attachment_url` | *String* | `https://ntfy.sh/file/afUbjadfl7ErP.jpg` | URL of the attachment; may be empty if not set | #### Send messages using intents To send messages from other apps (such as [MacroDroid](https://play.google.com/store/apps/details?id=com.arlosoft.macrodroid)