From 485729f41d17d44cd216ecc38e47497e8cd3225f Mon Sep 17 00:00:00 2001 From: Omar Masad Date: Sat, 26 Jul 2025 16:49:02 +0300 Subject: [PATCH 1/2] Add the device token This is needed for push notifications for some destinations and exists in https://segment.com/docs/connections/spec/common/#context --- context.go | 1 + 1 file changed, 1 insertion(+) diff --git a/context.go b/context.go index 9492605..28b8a7f 100644 --- a/context.go +++ b/context.go @@ -57,6 +57,7 @@ type CampaignInfo struct { // defined in https://segment.com/docs/spec/common/#context type DeviceInfo struct { Id string `json:"id,omitempty"` + Token string `json:"token,omitempty"` Manufacturer string `json:"manufacturer,omitempty"` Model string `json:"model,omitempty"` Name string `json:"name,omitempty"` From 4395265ed2789d1e537c60869b4dd67156cff4a2 Mon Sep 17 00:00:00 2001 From: Omar Masad Date: Sat, 26 Jul 2025 16:49:18 +0300 Subject: [PATCH 2/2] Update context.go --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index 28b8a7f..d307efe 100644 --- a/context.go +++ b/context.go @@ -57,7 +57,7 @@ type CampaignInfo struct { // defined in https://segment.com/docs/spec/common/#context type DeviceInfo struct { Id string `json:"id,omitempty"` - Token string `json:"token,omitempty"` + Token string `json:"token,omitempty"` Manufacturer string `json:"manufacturer,omitempty"` Model string `json:"model,omitempty"` Name string `json:"name,omitempty"`