Skip to content

Notification actions/callbacks #4953

Open
@hkparker

Description

@hkparker

Checklist

  • I have searched the issue tracker for open issues that relate to the same feature, before opening a new one.
  • This issue only relates to a single feature. I will open new issues for any other features.

Is your feature request related to a problem?

Notifications right now just display a string, and on mobile you don't appear to be able to click them to enter the app. On many mobile applications, clicking notifications not only opens the app, but opens it to the context / feature of the app relevant to the notification (think how clicking the notification of a chat app takes you to the specific conversation thread that created the notification).

I'd like to be able to send notifications with Fyne that, when the platform allows for it, let the user click the notification and enter the app with context.

Is it possible to construct a solution with the existing API?

Not that I'm aware of

Describe the solution you'd like to see.

notification := fyne.NewNotification("Title", "Content", func() {
    // This notification was clicked, now I can take some action and/or display the relevant container in the app
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions