From 8da998191a8fa99d3e104c325c8ee2c9d34e3bd1 Mon Sep 17 00:00:00 2001 From: Zach Botterman Date: Mon, 24 Feb 2025 17:58:05 -0800 Subject: [PATCH] for review --- .../notifications/notifications_windows.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/v3/pkg/services/notifications/notifications_windows.go b/v3/pkg/services/notifications/notifications_windows.go index 2496b7669..977ddae40 100644 --- a/v3/pkg/services/notifications/notifications_windows.go +++ b/v3/pkg/services/notifications/notifications_windows.go @@ -36,15 +36,17 @@ func (ns *Service) ServiceName() string { // ServiceStartup is called when the service is loaded // Sets an activation callback to emit an event when notifications are interacted with. func (ns *Service) ServiceStartup(ctx context.Context, options application.ServiceOptions) error { - toast.SetAppData(toast.AppData{ - AppID: "Notifications", - GUID: "{8F2E1A3D-C497-42B6-9E5D-72F8A169B051}", - IconPath: "C:\\Users\\Zach\\Development\\notifications_demo\\build\\appicon.ico", - ActivationExe: "C:\\Users\\Zach\\Development\\notifications_demo\\bin\\Notifications.exe", - }) + // Need to get App Name and generate a UUID on first launch + // + // toast.SetAppData(toast.AppData{ + // AppID: "Notifications", + // GUID: "{8F2E1A3D-C497-42B6-9E5D-72F8A169B051}", + // IconPath: "C:\\Users\\Zach\\Development\\notifications_demo\\build\\appicon.ico", + // ActivationExe: "C:\\Users\\Zach\\Development\\notifications_demo\\bin\\Notifications.exe", + // }) + // toast.SetActivationCallback(func(args string, data []toast.UserData) { - println("HERE!") actionIdentifier, userInfo := parseNotificationResponse(args) response := NotificationResponse{ Name: "notification",