-
-
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
Windows: App Icon in Notification #2592
Comments
Have you packed this with the |
Yes, I checked this with the |
Thanks for verifying. We should get this fixed. |
As best as I can tell this metadata comes from the packaged app metadata. |
I would love to do so, but unfortunately, I don't know how to do certification, signing etc. Sorry! |
Regarding this issue, I analyzed the app_windows.go file and saw that the toast template used is ToastText02, which does not allow images. We can use ToastImageAndText02, for example. Moreover, in PowerShell, the Windows Toast notification requires a file path for the icon. To work around this, I changed the PowerShell script template to:
And I also changed the SendNotification function to create a icon temp file:
This way, the icon is correctly displayed on Windows using the default app icon using fyne package. |
That sounds like a clever approach, thanks. Can you open a PR to that extent and we can work through getting it included? Thanks! |
Done! #4764 |
This is now landed on develop branch for v2.5.0 :) |
Is your feature request related to a problem? Please describe:
There is no App Icon in the notification sent by Fyne App (At least in windows, haven't checked with other platforms).
Is it possible to construct a solution with the existing API?
No.
Describe the solution you'd like to see:
Include app icon both in the toast and in the notification centre as well like this?
The text was updated successfully, but these errors were encountered: