fyne-io / fyne

Cross platform GUI toolkit in Go inspired by Material Design
https://fyne.io/
Other
25.31k stars 1.41k forks source link

Customize the icon and name of the notification message #2935

Open hombo86 opened 2 years ago

hombo86 commented 2 years ago

I hope the new version can support custom notification name and icon...

Jacalz commented 2 years ago

Please use the issue templates when opening new issues. The templates are designed to help us save time and give us all the necessary information related to the issue.

What operating system are you on? This should be partly resolved when v2.2.0 is released. On Windows, it should be partly supported with https://github.com/fyne-io/fyne/pull/2813 and https://github.com/fyne-io/fyne/pull/2906 should solve it for Linux and BSD wile macOS already supports it. I suspect that this most likely is a duplicate of https://github.com/fyne-io/fyne/issues/2592.

hombo86 commented 2 years ago

Sorry, I didn't use the template for my convenience. I'll correct it next time. My side is MacOS. When will 2.2.0 be released?

Jacalz commented 2 years ago

We don’t have any set date for 2.2.0 but this should already be working on 2.1.x on macOS as afar as I know. Have you packaged the app using the fyne package command (by installing cmd/fyne)?

andydotxyz commented 2 years ago

For clarity can you talk about the customisation you are asking for? Application notifications should use the app name and icon on notifications. on MacOS this does not work until you package the bundle (fyne package or fyne install) on some versions or an actual release (fyne release) for others, this is due to a restriction in macOS security.

dweymouth commented 10 months ago

I think this is a separate request from #2592. That one is just tracking the icon missing from notifications on Windows. This one is asking for a new API to customize the icon to something other than the app icon. (A very common use case for this - music players showing a song change notification.)

dweymouth commented 10 months ago

Adding this to the 2.5 milestone since it shouldn't be difficult, and I personally would really like to put this to use in Supersonic

andydotxyz commented 10 months ago

I'd be cautious of committing to this @dweymouth as I think around 50% targets don't support custom icons (Android, iOS, macOS) - though I may be mistaken.