-
Notifications
You must be signed in to change notification settings - Fork 65
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
Not showing notification in Windows 10 #27
Comments
icon path should be notification := toast.Notification{
AppID: "Example AppID",
Title: "My notification",
Message: "Some message about how important something is...",
Icon: "C:\\Users\\noti\\icon.png", // This file must exist (remove this line if it doesn't)
Actions: []toast.Action{
{"protocol", "I'm a button", ""},
{"protocol", "Me too!", ""},
},
}
err := notification.Push()
if err != nil {
log.Fatalln(err)
} |
Hi, I have the same issue. There is my code
|
@salomeldc Is there any error message? If there is, post it |
exactly the same that devbrat : |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Notification not showing up
`
package main
import (
"log"
toast "gopkg.in/toast.v1"
)
func main() {
notification := toast.Notification{
AppID: "Example AppID",
Title: "My notification",
Message: "Some message about how important something is...",
Icon: "C:\Users\noti\icon.png", // This file must exist (remove this line if it doesn't)
Actions: []toast.Action{
{"protocol", "I'm a button", ""},
{"protocol", "Me too!", ""},
},
}
err := notification.Push()
if err != nil {
log.Fatalln(err)
}
}
`
The text was updated successfully, but these errors were encountered: