proxywoman/notifier/notifier_darwin.go

15 lines
380 B
Go
Raw Permalink Normal View History

2019-12-07 23:24:21 +00:00
package notifier
import (
"github.com/deckarep/gosx-notifier"
)
func Notify(appName string, title string, message string, icon string) error {
notification := gosxnotifier.NewNotification(message);
notification.Title = appName;
notification.Subtitle = title;
notification.AppIcon = icon;
notification.Sender = "io.postwoman.proxy";
_ = notification.Push();
return nil;
}