Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clickable notification title when click.url is set #635

Open
DVDAndroid opened this issue Mar 1, 2024 · 1 comment
Open

Clickable notification title when click.url is set #635

DVDAndroid opened this issue Mar 1, 2024 · 1 comment
Labels
a:feature New feature or request in:ui

Comments

@DVDAndroid
Copy link

Is your feature request related to a problem? Please describe.
If I send a notification with this extra set:

{
  "extras": {
    "client::notification": {
      "click": { "url": "https://gotify.net" }
    }
  }
}

the url parameter is only available on the Android app (only when the notification is pressed, then its value is lost, I may implement this on the Android side, too)

Describe the solution you'd like
Make (at least) the notification title clickable with the extra parameter in the JSON payload

Describe alternatives you've considered
Leave as it is

Additional context
I can send a PR

@DVDAndroid DVDAndroid added the a:feature New feature or request label Mar 1, 2024
@jmattheis
Copy link
Member

I'm not sure, client::notification describes the notification and not the message itself. IMO it wouldn't be obvious that it affects the message display. I also don't know if that's really necessary because you could add a link to the message body and use it instead of using extras.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:feature New feature or request in:ui
Development

No branches or pull requests

3 participants