Merge pull request #44

hotfix/update-custom-keys-name
This commit is contained in:
Brendan Chen
2025-04-23 17:18:01 -07:00
committed by GitHub
2 changed files with 6 additions and 4 deletions

View File

@@ -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);

View File

@@ -119,7 +119,7 @@ export class AppleNotificationSender {
alert: notificationAlertArguments,
sound: "default"
},
customKeys,
...customKeys,
});
req.write(payload);
req.end();