diff --git a/src/notifications/senders/AppleNotificationSender.ts b/src/notifications/senders/AppleNotificationSender.ts index d64df98..8e5904a 100644 --- a/src/notifications/senders/AppleNotificationSender.ts +++ b/src/notifications/senders/AppleNotificationSender.ts @@ -17,6 +17,9 @@ export class AppleNotificationSender { private _lastRefreshedTimeMs: number | undefined = undefined; constructor(private shouldActuallySendNotifications = true) { + this.sendNotificationImmediately = this.sendNotificationImmediately.bind(this); + this.lastReloadedTimeForAPNsIsTooRecent = this.lastReloadedTimeForAPNsIsTooRecent.bind(this); + this.reloadAPNsTokenIfTimePassed = this.reloadAPNsTokenIfTimePassed.bind(this); } get lastRefreshedTimeMs(): number | undefined {