[GH-ISSUE #1166] Android: Show message from app/connector if not null or blank #824

Open
opened 2026-05-07 00:27:48 +02:00 by BreizhHardware · 0 comments

Originally created by @nikclayton on GitHub (Aug 11, 2024).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1166

💡 Idea

https://unifiedpush.org/developers/spec/android/#orgunifiedpushandroiddistributorregister describes a message that can be included when registering with the distributor.

  • message (String): a short description of the purpose of the registration that the distributor MAY show to the user.

ntfy-android doesn't do anything with this.

If present, and not-null/blank, it could be displayed in list of registered instances. At the moment that list has entries that look like this:

ntfy.sh/<some endpoint>
app.pachli (UnifiedPush)

If the app has registered multiple times (e.g., because there are multiple accounts in the app) there is no indication to the user which account is associated with which registration.

I think this could be more useful to the user if the information shown was:

${appName}: ${appMessage}
ntfy.sh/<some endpoint>

where

  • $appName is the app's package label from PackageManager.getApplicationLabel().
  • $appMessage is the message provided at registration, or the string ""
  • ntfy.sh/<some endpoint> is the same as currently shown

Possible enhancement to the above: use PackageManager.getApplicationIcon() to show the application's icon in the list as well.

💻 Target components

Android app

Originally created by @nikclayton on GitHub (Aug 11, 2024). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1166 :bulb: **Idea** <!-- Share your thoughts; try to be detailed if you can --> https://unifiedpush.org/developers/spec/android/#orgunifiedpushandroiddistributorregister describes a message that can be included when registering with the distributor. > - message (String): a short description of the purpose of the registration that the distributor MAY show to the user. ntfy-android doesn't do anything with this. If present, and not-null/blank, it could be displayed in list of registered instances. At the moment that list has entries that look like this: > ntfy.sh/&lt;some endpoint> > app.pachli (UnifiedPush) If the app has registered multiple times (e.g., because there are multiple accounts in the app) there is no indication to the user which account is associated with which registration. I think this could be more useful to the user if the information shown was: > ${appName}: ${appMessage} > ntfy.sh/&lt;some endpoint> where - $appName is the app's package label from `PackageManager.getApplicationLabel()`. - $appMessage is the message provided at registration, or the string "<no message>" - `ntfy.sh/<some endpoint>` is the same as currently shown Possible enhancement to the above: use `PackageManager.getApplicationIcon()` to show the application's icon in the list as well. :computer: **Target components** Android app
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#824
No description provided.