Code Monkey home page Code Monkey logo

Comments (6)

Jacalz avatar Jacalz commented on September 20, 2024 2

Fixing this would also likely fix #3079, I think.

from fyne.

mbaklor avatar mbaklor commented on September 20, 2024 1

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.

mbaklor avatar mbaklor commented on September 20, 2024

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.

andydotxyz avatar andydotxyz commented on September 20, 2024

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.

mbaklor avatar mbaklor commented on September 20, 2024

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.

andydotxyz avatar andydotxyz commented on September 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.