[GH-ISSUE #1107] Setting Icon in Headers (IOS) #780

Open
opened 2026-05-07 00:27:25 +02:00 by BreizhHardware · 8 comments

Originally created by @cyschneck on GitHub (May 14, 2024).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1107

🐞 Describe the bug
Is the Icon option in headers meant to fill the green icon on the left?
IMG_6795

💻 Components impacted

IOS app

💡 Screenshots and/or logs
Currently, I have the link for the square image set to icon_img
icon_img = "https://inaturalist-open-data.s3.amazonaws.com/photos/24939293/square.jpg"
square

requests.post(f"https://ntfy.sh/{ntfy_id}",
			data="This is a test",
			headers = {
				"Title": "New Notification!",
				"Icon":icon_img})

But the green icon doesn't appear to be set by Icon

🔮 Additional context

Notifications sent through Github Actions

Originally created by @cyschneck on GitHub (May 14, 2024). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1107 :lady_beetle: **Describe the bug** Is the `Icon` option in `headers` meant to fill the green icon on the left? ![IMG_6795](https://github.com/binwiederhier/ntfy/assets/22159116/7cf6bc4d-f4c2-49a2-bab6-19cac0af9ed8) :computer: **Components impacted** <!-- ntfy server, Android app, iOS app, web app --> IOS app :bulb: **Screenshots and/or logs** Currently, I have the link for the square image set to `icon_img` `icon_img = "https://inaturalist-open-data.s3.amazonaws.com/photos/24939293/square.jpg"` ![square](https://github.com/binwiederhier/ntfy/assets/22159116/96cae319-a46f-4ae2-8d55-c77af3ad2cf6) ``` requests.post(f"https://ntfy.sh/{ntfy_id}", data="This is a test", headers = { "Title": "New Notification!", "Icon":icon_img}) ``` But the green icon doesn't appear to be set by `Icon` :crystal_ball: **Additional context** <!-- Add any other context about the problem here. --> Notifications sent through Github Actions
Author
Owner

@MindTooth commented on GitHub (May 21, 2024):

From what I gather, it's not supported.

https://docs.ntfy.sh/publish/#icons

<!-- gh-comment-id:2121500882 --> @MindTooth commented on GitHub (May 21, 2024): From what I gather, it's not supported. https://docs.ntfy.sh/publish/#icons
Author
Owner

@cyschneck commented on GitHub (May 23, 2024):

That's alright, what is the purpose of the icon variable then?

<!-- gh-comment-id:2126077849 --> @cyschneck commented on GitHub (May 23, 2024): That's alright, what is the purpose of the icon variable then?
Author
Owner

@wunter8 commented on GitHub (May 23, 2024):

It's only supported on Android right now

<!-- gh-comment-id:2126096408 --> @wunter8 commented on GitHub (May 23, 2024): It's only supported on Android right now
Author
Owner

@cyschneck commented on GitHub (May 23, 2024):

Are there plans for IOS/iPhone in the future?

<!-- gh-comment-id:2126150947 --> @cyschneck commented on GitHub (May 23, 2024): Are there plans for IOS/iPhone in the future?
Author
Owner

@wunter8 commented on GitHub (May 23, 2024):

Plans, yes. But no estimated timeline. We don't have any iOS devs to work on the app right now. If you know anyone willing to help out, send them our way!

<!-- gh-comment-id:2126159559 --> @wunter8 commented on GitHub (May 23, 2024): Plans, yes. But no estimated timeline. We don't have any iOS devs to work on the app right now. If you know anyone willing to help out, send them our way!
Author
Owner

@Scrxtchy commented on GitHub (Jan 31, 2025):

I spent a few days looking into this in my free time, which involved starting from no xcode or swift experience.

Unfortunately, actually getting results from this will require a paid development account to work with remote push notifications, as that is the only method where custom icons appear to be supported (in contrast to custom attachments, which is supported via local notifications)

<!-- gh-comment-id:2626964747 --> @Scrxtchy commented on GitHub (Jan 31, 2025): I spent a few days looking into this in my free time, which involved starting from no xcode or swift experience. Unfortunately, actually getting results from this will require a paid development account to work with remote push notifications, as that is the only method where custom icons appear to be supported (in contrast to custom attachments, which is supported via local notifications)
Author
Owner

@wunter8 commented on GitHub (Jan 31, 2025):

Thanks for looking into it and trying to help out! Apple's paid developer accounts are certainly a barrier to getting changes added to the iOS app

<!-- gh-comment-id:2627355076 --> @wunter8 commented on GitHub (Jan 31, 2025): Thanks for looking into it and trying to help out! Apple's paid developer accounts are certainly a barrier to getting changes added to the iOS app
Author
Owner

@foxdodo commented on GitHub (Apr 25, 2025):

I spent a few days looking into this in my free time, which involved starting from no xcode or swift experience.

Unfortunately, actually getting results from this will require a paid development account to work with remote push notifications, as that is the only method where custom icons appear to be supported (in contrast to custom attachments, which is supported via local notifications)

Upload icons locally is a good way to go. Another push app on iOS called Bark does this for custom notification sounds.

<!-- gh-comment-id:2829508733 --> @foxdodo commented on GitHub (Apr 25, 2025): > I spent a few days looking into this in my free time, which involved starting from no xcode or swift experience. > > Unfortunately, actually getting results from this will require a paid development account to work with remote push notifications, as that is the only method where custom icons appear to be supported (in contrast to custom attachments, which is supported via local notifications) Upload icons locally is a good way to go. Another push app on iOS called Bark does this for custom notification sounds.
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#780
No description provided.