Skip to content
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 11 support? #51

Open
eXpansiiVe opened this issue Dec 25, 2022 · 7 comments
Open

Windows 11 support? #51

eXpansiiVe opened this issue Dec 25, 2022 · 7 comments

Comments

@eXpansiiVe
Copy link

Anyone knows if this package works with windows 11 aswell? Because i'm trying to implent it in my application but it doesn't send any system notification, i managed to make work only the beeep.Beep() .

@pztrn
Copy link

pztrn commented Feb 9, 2023

Looks like it is simply an addition of another comparison to https://github.com/gen2brain/beeep/blob/master/notify_windows.go#L35.

@gen2brain
Copy link
Owner

I guess it should not be difficult to add support, if everything else is the same. I don't have Win11 system to try currently, so it can take some time, any help is welcome.

@eXpansiiVe
Copy link
Author

Looks like it is simply an addition of another comparison to https://github.com/gen2brain/beeep/blob/master/notify_windows.go#L35.

I don't think that's the problem, because the value of CurrentMajorVersionNumber in the windows 11 registry is the same as the value on windows 10.
I'm currently on Windows 11.
CurrentMajorVersionNumber

@Threnklyn
Copy link

looks like github.com/go-toast/toast is not working with windows 11
I tried to run the exe and nothing happened

@quite
Copy link

quite commented Apr 5, 2023

It works for me on my installation of windows 11 home. Also beeep uses the correct toastNotify method.

@henhouse
Copy link

If anyone is interested, I took a look into this and from what I can ascertain the Powershell script that is generated to conduct the toast notification on Windows no longer works in Windows 11. There are no errors returned from Powershell itself, but no notifications occur.

I am assuming Windows 11 reworked the system somehow and it is no longer possible? To double check this theory, I followed a guide using a slightly different method to create notifications and seemingly nothing happened there, either.

I also asked ChatGPT for help as well on generating toast notifications with PS in Windows 11 to see if it could provide useful solutions, and it said "Unfortunately, in Windows 11, without relying on third-party tools, packages, or modules, there is no built-in way to display toast notifications using vanilla PowerShell.". No source on that, so take it with a grain of salt if it's correct, but it would corroborate the theory, if true.

As mentioned earlier, the registry key does identify itself as "10" in Win11, so something like the build version key would be better to target in the future (Windows 11 builds begin at 22000). But this makes no difference until an alternate method to generate notifications is solved, unfortunately.

@Arno500
Copy link

Arno500 commented May 28, 2023

There is apparently a way: https://learn.microsoft.com/en-us/windows/apps/design/shell/tiles-and-notifications/send-local-toast-other-apps
It requires quite a lot of work though, but it should be flexible and allow to use actions and items inside the "app notification" (as they call them)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants