-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Notification actions/callbacks #4953
Comments
This is a great addition. However, do keep in mind that modifying the |
I'm not sure it can be done with functions, though it would be nice if that was possible. |
I'd imagine something like this for the API side of that myDeepLink := url.Url{} // url that should be used to call into the app when the notification is clicked
notification := fyne.NewNotificationWithDeepLink("Title", "Content", myDeepLink) myapp.SetDeepLinkHandler(func(deepLink url.URL) {
// match the URL to a rule and do anything / display anything as needed
}) With this scheme the developer gets to provide their own function for matching any deep link, which is very flexible |
Checklist
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.
The text was updated successfully, but these errors were encountered: