5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-04 05:31:40 +08:00
This commit is contained in:
popaprozac 2025-03-27 13:27:39 -07:00
parent 743882a9b9
commit 1022f47f14

View File

@ -54,7 +54,7 @@ On Windows and Linux this always returns `true`.
Send a basic notification with a unique id, title, optional subtitle (macOS and Linux), and body text to users: Send a basic notification with a unique id, title, optional subtitle (macOS and Linux), and body text to users:
```go ```go
notifier.SendNotification(notifications.NotificaionOptions{ notifier.SendNotification(notifications.NotificationOptions{
ID: "unique-id", ID: "unique-id",
Title: "New Calendar Invite", Title: "New Calendar Invite",
Subtitle: "From: Jane Doe", // Optional Subtitle: "From: Jane Doe", // Optional
@ -137,8 +137,8 @@ notifier.SendNotification(notifications.NotificaionOptions{
Subtitle: "From: Jane Doe", // Optional Subtitle: "From: Jane Doe", // Optional
Body: "Tap to view the event" Body: "Tap to view the event"
Data: map[string]interface{}{ Data: map[string]interface{}{
sender: "jane.doe@example.com", "sender": "jane.doe@example.com",
timestamp: "2025-03-10T15:30:00Z", "timestamp": "2025-03-10T15:30:00Z",
} }
}) })