Alternative to WhatsApp to send push notifications to your mobile device or browser using Go

When developing software, it is essential to have a method of tracking significant events and promptly receiving notifications.

While it is possible for some individuals to use Whatsapp to post events from their Go code to a chat/group via the API, this solution may not be convenient and may offer limited capabilities for processing the events further.

LogHive provides an uncomplicated solution for monitoring crucial events and receiving real-time alerts on your desktop, phone, and smartwatch. Here are some benefits that are particularly relevant:

  • Precise control over push notifications with different settings per event-group
  • Greater flexibility in organizing events and visualize them in a dashboard
  • Better organization through division into projects and groups
  • Additional description which is searchable
  • Separate events from messages and chats

All you need to do is send an HTTP request from your Go code to our API with any supplementary data, and LogHive handles the rest.

How it works in Go

LogHive provides a simple REST API that you can use to push events and errors to the LogHive service. You can organize your events into projects and groups to keep them organized and easily searchable. Once an event is pushed to LogHive, it is processed and can be viewed in the event stream or dashboard.

With just a few lines of Go-code, you can start pushing events to LogHive and receiving push notifications for your application’s events and errors.

package main

import (

func sendRequest() {
	url := ""
	headers := map[string]string{
		"Content-Type":  "application/json",
		"Authorization": "ApiKey: your-api-key",
	data := map[string]string{
		"project": "yourprojectname",
		"group": "Payments",
		"event": "Payment received",
		"description": "your-description",
		"notify": false

	jsonData, err := json.Marshal(data)
	if err != nil {
		// Handle error

	req, err := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
	if err != nil {
		// Handle error

	for key, value := range headers {
		req.Header.Set(key, value)

	client := &http.Client{}
	resp, err := client.Do(req)
	if err != nil {
		// Handle error
	defer resp.Body.Close()

	// Handle response

If an error occurs while creating an event, you will receive an Error object in return.

{'StatusCode': 400, 'Message': 'missing group name'}

You can receive your API-Key here: API-Key.

Receive Push Notifications

To receive push notifications, you simply need to install the LogHive Android app (Playstore) or use LogHive through the web application and allow notifications.

Add an element to your project dashboard

In addition to push notifications, LogHive allows you to display captured events in a dashboard with various elements. With just a few clicks, you can display the events already pushed in the dashboard.

In conclusion, it is essential to have a reliable means of tracking and monitoring events when developing software. LogHive offers an easy-to-use solution that allows users to track important events and receive real-time notifications on multiple devices.

Try LogHive as an alternative to WhatsApp.

Latest Posts