No Notification is shown
jessestricker opened this issue ยท 8 comments
Hi,
I am using your library like this:
import "github.com/go-toast/toast" // also tried "gopkg.in/toast.v1"
// ...
notification := toast.Notification{
AppID: "...",
Title: "...",
Message: "...",
Audio: toast.Default,
}
err := notification.Push()
checkErr(err)
The notification is not shown, no sound is played and no error is returned from notification.Push()
.
System Info: Windows 10 (Version 1709, Build 16288.1)
I've had a glance at your code real quick, but could not see the bug myself.
Thanks @jessestricker, I will investigate as soon as I can.
Maybe this has to do with me working on an Windows Insider preview version.
A friend runs the stable release version and the notification shows up on his system.
Thanks for the additional information. I haven't had any chance to take a look yet. But I will keep you posted as soon as I do. I'm primarily a macOS user, so having to boot into Windows and close my 1.5 billion open Chrome tabs is hard for me ๐. Though it sounds like I'll have to setup a VM to test the insider preview version in isolation.
@jessestricker @jmshal this is broken on the fall creators update due to windows requiring a real AppID now.
Example, if you set the AppID of your toast to something like this
AppID: "{1AC14E77-02E7-4E5D-B744-2EB1AE5198B7}\\WindowsPowerShell\\v1.0\\powershell.exe",
It will work.
I am using Windows 10 Version 1903 Build 18362.145 and found that I can send toast notifications using a custom AppID.
Just make sure it doesn't contain illegal characters, especially '
. Space is legal.
If you still have issues about not showing notifications, you can open %temp% and look for *.ps1 file, run it in you PowerShell console and you can see error message.
Hi zwlxt how can you generate custom app id?
the above link might help..
I am closing this as it's really out of date and the repo seems unmaintained.