Push Notifications and Live Activities with Go

Works with your Go stack

Add Push Notifications and Live Activities to your Go application with a few lines of code.

go get github.com/ActivitySmithHQ/activitysmith-go
package main
import (
"os"
activitysmithsdk "github.com/ActivitySmithHQ/activitysmith-go"
)
func main() {
activitysmith, _ := activitysmithsdk.New(os.Getenv("ACTIVITYSMITH_API_KEY"))
}

Push Notifications

A new subscription, a finished job, an agent that needs your attention. Send the update straight to your iPhone or iPad.

ActivitySmith Push Notification: New subscription, Customer upgraded to Pro plan
input := activitysmithsdk.PushNotificationInput{
Title: "New subscription 💸",
Message: "Customer upgraded to Pro plan",
}
activitysmith.Notifications.Send(input)
Explore Push Notifications

Live Activities

Keep deployments, backups, and long-running jobs visible on your Lock Screen and Dynamic Island. Update the same Live Activity as the work progresses.

Nightly database backup Live Activity showing step 2 of 3
activitysmith.LiveActivities.Stream(
"nightly-backup",
activitysmithsdk.LiveActivityStreamInput{
Title: "Nightly database backup",
Subtitle: "upload archive",
Type: "segmented_progress",
NumberOfSteps: 3,
CurrentStep: 2,
},
)
Explore Live Activities

Lock Screen Widgets

Revenue, signups, uptime. Send a metric value from your backend and see it in a widget on your Lock Screen.

ActivitySmith Lock Screen Widgets displaying business metrics
activitysmith.Metrics.Update("revenue", 2430)
Explore Lock Screen Widgets

Send your first push notification.

Pair your device, create an API key, and make your first call.

Explore other SDKs