diff --git a/internal/api/devices.go b/internal/api/devices.go index 4c7ef90..ddd5ebb 100644 --- a/internal/api/devices.go +++ b/internal/api/devices.go @@ -68,6 +68,7 @@ func (a *api) testDeviceHandler(w http.ResponseWriter, r *http.Request, ps httpr body := fmt.Sprintf("Active usernames are: %s", english.OxfordWordSeries(users, "and")) notification := &apns2.Notification{} notification.Topic = "com.christianselig.Apollo" + notification.DeviceToken = d.APNSToken notification.Payload = payload. NewPayload(). Category("test-notification").