binwiederhier / ntfy

Send push notifications to your phone or desktop using PUT/POST
https://ntfy.sh
Apache License 2.0
18.32k stars 717 forks source link

Feature Request: Friendly names for servers in notifications #1059

Open Nbelles opened 7 months ago

Nbelles commented 7 months ago

:bulb: Idea

I think it would be convenient to have the ability to create aliases (or friendly names) for ntfy servers. Not all of the places that I host my ntfy servers have human friendly domain/subdomains. The title of the notifications that I receive have pretty long domains and make it hard to find where the topic name is at the end.

:computer: Target components

I'm not a mobile app developer (and I only have iOS devices) so I have no idea how much work it would be to modify the content included in the title of the notifications. I think there are two options for how I could see it implemented. Option 1: when adding the subscription to the mobile app, there's a textbook for a friendly name that overwrites the domain in the title of the notification for that topic. Option 2: adding a config parameter for a friendly name that is included when publishing notifications and overwrites the domain in the title of the notification. Both options would alleviate my concern.

Love the work you've done with this project!

wunter8 commented 7 months ago

This already exists in the web app and android app. (It's implemented similar to option 1). Not sure when we'll get it added to the iOS app, but it's on the list!

Batwam commented 7 months ago

You mention title of notifications in your original message. I did see the server name in the notification on iOS initially and though that it didn't look great but I then realised that this is only there as default when no title is defined.

Have you set a title for your messages using -H "Title: Unauthorized access detected" ?

lukaslindnermusic commented 6 months ago

I would love to see that feature in the iOS app, too. In the scrollable list of subscriptions, I can't even read the topics I've subscribed to because my domain is too long for the screen width.

A suggestion: Maybe you could move the domain into a new grey subtitle line, above the notifications count, and have the topic itself the only thing in the list title. Then, you could add the "Change display name" functionality from the Web UI, maybe as another option for the swipe-left gesture? could have a Pencil Icon and color yellow or blue 😊

Thank you for that great app and project 😊