add shuttleId as custom key in notification alert argument

This commit is contained in:
2025-04-22 11:00:53 -07:00
parent 26b1e70f5b
commit 44a0f56b93
2 changed files with 6 additions and 1 deletions

View File

@@ -45,6 +45,9 @@ export class ETANotificationScheduler {
const notificationAlertArguments: NotificationAlertArguments = {
title: "Shuttle is arriving",
body: `Shuttle is approaching ${stop.name} in ${Math.ceil(eta.secondsRemaining / 60)} minutes.`,
customKeys: {
shuttleId,
},
}
return this.appleNotificationSender.sendNotificationImmediately(deviceId, notificationAlertArguments);
}