Comments (6)
Fixing this would also likely fix #3079, I think.
from fyne.
True, but again, I've seen at this point a few implementations of balloon notifications that placed a systray, sent a notification, removed the systray. I don't know if with the way fyne and in general gui apps handle the event loop if this is a viable option, but at least in theory it should work. Again, I have nothing against toast notifs specifically but they seem messy from what I can parse of the windows docs
from fyne.
I'm adding this here because if going with the balloon notification API doesn't work, someone made a C version of the microsoft C++ example for the toast API
https://github.com/microsoft/Windows-classic-samples/tree/main/Samples/DesktopToasts/CPP
https://gist.github.com/valinet/3283c79ba35fc8f103c747c8adbb6b23
from fyne.
I think it needs to be the toast type doesn't it? The bubbles relate to system tray apps (in my experience).
Great suggestion to move off the script based code though.
from fyne.
Yea it looks like bubbles require a system tray app, but that might make implementing easier since the tray app logic exists already so it's just about adding notifications to the existing logic. I don't know if that's a possibility since the systray logic isn't directly in fyne but instead it's in the systray package?
Looks like toasts still need the XML document even if you don't go with pwsh script, but I have only a loose grasp on windows APIs so I might be wrong, that said if it's just an xml template it's less of an issue than running a pwsh script from within go, but I'm not sure what to do with the XML once it exists
*edit
https://learn.microsoft.com/en-us/uwp/api/windows.ui.notifications.toastnotificationmanager?view=winrt-22621#sending-toast-notifications-from-desktop-apps
looks like toasts are an issue for non-uwp apps, might be solvable, I have no idea what this means haha
from fyne.
Yea it looks like bubbles require a system tray app, but that might make implementing easier since the tray app logic exists already so it's just about adding notifications to the existing logic. I don't know if that's a possibility since the systray logic isn't directly in fyne but instead it's in the systray package?
We cannot require system tray just for notification support.
from fyne.
Related Issues (20)
- Scroll acceleration logic causes scrolling to "jump" suddenly on MacOS HOT 1
- fyne package is trying to bundle 32bit resource file HOT 11
- The content of the entries in the list may wrap to a new line or get lost when scrolling. HOT 1
- High CPU and sluggishness running a simple wasm app HOT 8
- Make `fyne serve` accept `--metadata` flags HOT 2
- button-disable-OnTapped? HOT 1
- fyne_demo logs Fyne error: Failed to load image when click Widgets/Text
- Demo Compilation error : /usr/bin/ld: cannot find -lXxf86vm: No such file or directory HOT 2
- FileOpen and FoldOpen:The window will always go into a subfolder automatically HOT 2
- Add tooltip to system tray HOT 1
- NewTreeWithData will occasionally show "item" disappearing on Ubuntu 18
- Android VPN Client HOT 3
- implicit declaration of function '_beginthread' HOT 1
- compilation failed ubuntu 24.04 LTS HOT 9
- Trigger MenuItem Selection in Open Menu of Select Widget in Test HOT 3
- Table Keyboard Navigation with Header Row Hides First Data Row
- Add Access to Table's Current Focus HOT 1
- Nested Draggable Objects Priority Issue
- If I want to make one, does the widget.richtext support the function of dragging and dropping selected text with the mouse? HOT 2
- label with color? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fyne.