cross-platform library for sending desktop notifications

Golang-Toast

cross-platform library for sending desktop notifications

license

Installation

go get github.com/electricbubble/go-toast

Example

  • Common invocation

    package main
    
    import (
        "github.com/electricbubble/go-toast"
    )
    
    func main() {
        // _ = toast.Push("test message")
        _ = toast.Push("test message", toast.WithTitle("app title"))
    }
  • macOS

    package main
    
    import (
        "github.com/electricbubble/go-toast"
    )
    
    func main() {
        // _ = toast.Push("test message")
        // _ = toast.Push("test message", toast.WithTitle("app title"))
        _ = toast.Push("test message",
            toast.WithTitle("app title"),
            toast.WithSubtitle("app sub title"),
            toast.WithAudio(toast.Ping),
        )
    }
  • Windows

    package main
    
    import (
        "github.com/electricbubble/go-toast"
    )
    
    func main() {
        // _ = toast.Push("test message")
        // _ = toast.Push("test message", toast.WithTitle("app title"))
        _ = toast.Push("test message",
            toast.WithTitle("app title"),
            toast.WithAppID("app id"),
            toast.WithAudio(toast.Default),
            toast.WithLongDuration(),
            toast.WithIcon("/path/icon.png"),
        )
        // bs, err := os.ReadFile("/path/icon.png")
        // if err != nil {
        // 	log.Fatalln(err)
        // }
        // toast.WithIconRaw(bs)
    }

Thanks

Thank you JetBrains for providing free open source licenses


Repository Description
go-toast/toast A go package for Windows 10 toast notifications
fyne-io/fyne Cross platform GUI in Go inspired by Material Design
gen2brain/beeep Go cross-platform library for sending desktop notifications, alerts and beeps
Similar Resources

A fast, high performance Cross-platform lightweight Nat Tracker Server,

A fast, high performance Cross-platform lightweight Nat Tracker Server,

NatTrackerServer A fast, high performance Cross-platform lightweight Nat Tracker Server suport IPv4 and IPv6 Tracker Server protocol 1、get NAT public

Apr 15, 2022

A cross-platform, decentralized, chat app based on SaltyIM for functionality and GioUI for UI

This project is shifted at https://git.mills.io/saltyim/app Salty UI A cross-platform, decentralized, chat app based on SaltyIM for functionality and

Aug 30, 2022

Official IVPN Desktop app

Official IVPN Desktop app

IVPN for Desktop (Windows/macOS/Linux) IVPN for Desktop is the official IVPN app for desktop platforms. Some of the features include: multiple protoco

Jan 3, 2023

A Fyne login manager for linux desktop computers

A Fyne login manager for linux desktop computers

Fin, the Fyne Login Manager This app is in it's very early stages and has only been tested with pam and systemd to log in users with a .xinitrc file.

Oct 12, 2022

User Agents detector for tv, phone, tablet and desktop devices.

gouseragents Accurate and fresh list of desktop, phone, tablet and tv user agents. install go get github.com/emetriq/gouseragents usage import ( "f

Apr 26, 2022

Exposure Notification Reference Server | Covid-19 Exposure Notifications

Exposure Notification Reference Key Server COVID‑19 Exposure Notifications API Exposure Notification Reference Key Server Documentation In our continu

Jan 7, 2023

This small Docker project is the easiest way to send notifications directly via .txt files to services like: Gotify, Telegram, SMTP (Email) or Webhook.

This small Docker project is the easiest way to send notifications directly via .txt files to services like: Gotify, Telegram, SMTP (Email) or Webhook.

This small Docker project is the easiest way to send notifications directly via .txt files to services like: Gotify, Telegram, SMTP (Email) or Webhook.

Oct 5, 2022

A Go package for sending and receiving ethernet frames. Currently supporting Linux, Freebsd, and OS X.

ether ether is a go package for sending and receiving ethernet frames. Currently supported platform: BPF based OS X FreeBSD AF_PACKET based Linux Docu

Sep 27, 2022

QUIC-PING: A UDP client for sending QUIC PINGs.

QUIC-PING A UDP client for sending "QUIC PING"s. What is a QUIC PING? A QUIC Initial packet with random payload and the version 0xbabababa to force Ve

Dec 14, 2022
Comments
  • Added Activation Arguments

    Added Activation Arguments

    In one of my projects, I needed to be able to open the browser when the notification was clicked on, without the use of buttons. This was not possible in the current form even though it is an value already part of the code and that gets put into the xml.

    Thus I have added WithActivationArgumentsand re-added the commented out WithActivationType

  • Notifications do not appear in Windows 10 Entreprise

    Notifications do not appear in Windows 10 Entreprise

    Hello,

    I'm trying to use your package in my custom application to display notifications. It is working fine on Windows 10 Professionnel but nothing appears when i run my application on Windows 10 Entreprise (The app runs without errors but does not display the notification)

    Do you have any idea why it is not working on Windows 10 Entreprise ? Or if there is any dependencies that should be installed on windows to make it work.

    Thank you

    Capture

  • Can't build on Linux

    Can't build on Linux

    Hi, I want to build an application on Linux that will be using your package to send notification on Windows. Whn building I have this error :

    # github.com/electricbubble/go-toast x86_64-w64-mingw32-gcc: fatal error: cannot execute 'cc1obj': execvp: No such file or directory compilation terminated.

    Is it possible to do what I want to do ? If yes, how can I bypass this issue ?

Related tags
Cross-poster - A cross-posting tool for golang
Cross-poster - A cross-posting tool for golang

How to start cp config.example.json config.json update config in config.json Bui

Feb 19, 2022
Pure-Go library for cross-platform local peer discovery using UDP multicast :woman: :repeat: :woman:
Pure-Go library for cross-platform local peer discovery using UDP multicast :woman: :repeat: :woman:

peerdiscovery Pure-go library for cross-platform thread-safe local peer discovery using UDP multicast. I needed to use peer discovery for croc and eve

Jan 8, 2023
Library for receiving (near) realtime notifications about earthquakes using websockets

goseismic goseismic is library for receiving (near) realtime notifications about earthquakes using websockets from SeismicPortal. Using goseismic, rec

Dec 29, 2022
Cross platform gRPC client
Cross platform gRPC client

Cross platform gRPC client Features Automatic parsing of proto definitions to render services and input messages .proto file discovery Selection of mu

Jan 4, 2023
Brook is a cross-platform strong encryption and not detectable proxy. Zero-Configuration. Brook 是一个跨平台的强加密无特征的代理软件. 零配置.

Brook 中文 v20210401 [GUI] Block list(Ad Block) Bypass & Block rule [GUI] Forward DNS [GUI] OpenWrt GUI client [GUI] Fake DNS [CLI] $ brook tproxy Scrip

Jan 4, 2023
Packiffer is a lightweight cross-platform networking toolkit that let you sniff/analyze/inject/filter packets.
Packiffer is a lightweight cross-platform networking toolkit that let you sniff/analyze/inject/filter packets.

Packiffer is a lightweight cross-platform networking toolkit that let you sniff/analyze/inject/filter packets.

Dec 19, 2022
Cross platform local network clipboard sync.

clipSync Synchronize clipboard content across multiple devices. Features Rapidly synchronize clipboard content to all devices in same local network. S

Jan 3, 2022
Cross-platform, multi-server chat app built using Fyne
Cross-platform, multi-server chat app built using Fyne

Fibro Really early days proof of concept for a cross-platform multi-server chat. Feel free to play, but don't expect it to do much! Features Multiple

Sep 10, 2022
Paw: a cross platform application to manage your passwords and identities securely
Paw: a cross platform application to manage your passwords and identities securely

Paw Paw is a cross platform application to manage your passwords and identities securely. It is written in Go and uses Fyne as UI toolkit and age as e

Oct 13, 2022
🖥️ Fast, modern and cross-platform SSH client
🖥️ Fast, modern and cross-platform SSH client

??️ Fast, modern and cross-platform SSH client Installation Build from source Requirements for building the project from source: Node 16 Go >= 1.17 Wa

Mar 20, 2022