[GH-ISSUE #126] Feature request: icon param for notifications #104

Closed
opened 2026-05-07 00:20:02 +02:00 by BreizhHardware · 6 comments

Originally created by @poblabs on GitHub (Feb 3, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/126

Outside of the file or attachment parameters, it would be nice to have an icon parameter. This would show up on the android client to the side as a quick visual reference to the alert. I also have another use case where I would use it with windows 10 toast notifications.

Thanks!

Originally created by @poblabs on GitHub (Feb 3, 2022). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/126 Outside of the file or attachment parameters, it would be nice to have an icon parameter. This would show up on the android client to the side as a quick visual reference to the alert. I also have another use case where I would use it with windows 10 toast notifications. Thanks!
Author
Owner

@binwiederhier commented on GitHub (Mar 21, 2022):

@poblabs Would you want something like this:

curl -d hi -H "Icon: https://example.com/myicon.png" ntfy.sh/mytopic

Or (with myicon being configured in the app):

curl -d hi -H "Icon: myicon" ntfy.sh/mytopic
<!-- gh-comment-id:1073887230 --> @binwiederhier commented on GitHub (Mar 21, 2022): @poblabs Would you want something like this: ``` curl -d hi -H "Icon: https://example.com/myicon.png" ntfy.sh/mytopic ``` Or (with `myicon` being configured in the app): ``` curl -d hi -H "Icon: myicon" ntfy.sh/mytopic ```
Author
Owner

@binwiederhier commented on GitHub (Mar 21, 2022):

Also, would #155 be enough?

<!-- gh-comment-id:1073887748 --> @binwiederhier commented on GitHub (Mar 21, 2022): Also, would #155 be enough?
Author
Owner

@poblabs commented on GitHub (Apr 22, 2022):

@binwiederhier I think per-notification icon would be a nice touch. That way I only have to sub to 1 topic, but use it for multiple apps. The icon would identify the app within the sub. I suppose I'm not picky though as I could make a new topic for each app - just more overhead to remember it all

<!-- gh-comment-id:1106791906 --> @poblabs commented on GitHub (Apr 22, 2022): @binwiederhier I think per-notification icon would be a nice touch. That way I only have to sub to 1 topic, but use it for multiple apps. The icon would identify the app within the sub. I suppose I'm not picky though as I could make a new topic for each app - just more overhead to remember it all
Author
Owner

@blacklight commented on GitHub (Jun 2, 2022):

+1 on this

I still use Pushbullet for notification mirroring exactly for this reason: notification mirroring without icons (of the app, the contact, or whatever the notification decides to display as an icon) is suboptimal.

Custom icons configured in the app are definitely interesting, but IMHO the greatest potential could come from supporting generic icons as URLs.

<!-- gh-comment-id:1145397229 --> @blacklight commented on GitHub (Jun 2, 2022): +1 on this I still use Pushbullet for notification mirroring exactly for this reason: notification mirroring without icons (of the app, the contact, or whatever the notification decides to display as an icon) is suboptimal. Custom icons configured in the app are definitely interesting, but IMHO the greatest potential could come from supporting generic icons as URLs.
Author
Owner

@wunter8 commented on GitHub (Jul 16, 2022):

Alright! The code is just about done!

image

image

image

image

image

<!-- gh-comment-id:1186239848 --> @wunter8 commented on GitHub (Jul 16, 2022): Alright! The code is just about done! ![image](https://user-images.githubusercontent.com/8421688/179364676-5f466c9d-310a-47ff-8f48-dcdac3474908.png) ![image](https://user-images.githubusercontent.com/8421688/179364682-b9eacb9b-5efb-4ae2-92d2-0b510592131d.png) ![image](https://user-images.githubusercontent.com/8421688/179364685-3ba2e559-60c1-4c4b-929b-7497009ed422.png) ![image](https://user-images.githubusercontent.com/8421688/179364689-c9ec1cc4-6172-4c5d-afc0-1304771b4c8d.png) ![image](https://user-images.githubusercontent.com/8421688/179364692-7eafe58d-5bb9-4009-9783-26cfb0cca45c.png)
Author
Owner

@binwiederhier commented on GitHub (Sep 12, 2022):

Done, next release

<!-- gh-comment-id:1243117578 --> @binwiederhier commented on GitHub (Sep 12, 2022): Done, next release
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#104
No description provided.