diff --git a/src/notifications/schedulers/ETANotificationScheduler.ts b/src/notifications/schedulers/ETANotificationScheduler.ts index b269982..328f36c 100644 --- a/src/notifications/schedulers/ETANotificationScheduler.ts +++ b/src/notifications/schedulers/ETANotificationScheduler.ts @@ -47,9 +47,11 @@ export class ETANotificationScheduler { title: "Shuttle is arriving", body: `Shuttle is approaching ${stop.name} in ${Math.ceil(eta.secondsRemaining / 60)} minutes.`, customKeys: { - shuttleId, - stopId, - systemId: this.interchangeSystemId, + shuttleEtaNotificationInfo: { + shuttleId, + stopId, + systemId: this.interchangeSystemId, + } }, } return this.appleNotificationSender.sendNotificationImmediately(deviceId, notificationAlertArguments); diff --git a/src/notifications/senders/AppleNotificationSender.ts b/src/notifications/senders/AppleNotificationSender.ts index 2f458af..4aac769 100644 --- a/src/notifications/senders/AppleNotificationSender.ts +++ b/src/notifications/senders/AppleNotificationSender.ts @@ -119,7 +119,7 @@ export class AppleNotificationSender { alert: notificationAlertArguments, sound: "default" }, - customKeys, + ...customKeys, }); req.write(payload); req.end();