From 50ad23b760e87b8b4f341b3b6aaf9fb76d3e6721 Mon Sep 17 00:00:00 2001 From: Hampus Date: Thu, 24 Sep 2026 15:04:01 +0200 Subject: [PATCH] fix(api): run the notification extension on every iOS alert (#2933) --- fluxer_api/src/api/push/ApnsPushService.ts | 4 +--- fluxer_api/src/api/push/tests/ApnsPushService.test.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/fluxer_api/src/api/push/ApnsPushService.ts b/fluxer_api/src/api/push/ApnsPushService.ts index 11d10f464..e8f5eb86e 100644 --- a/fluxer_api/src/api/push/ApnsPushService.ts +++ b/fluxer_api/src/api/push/ApnsPushService.ts @@ -204,9 +204,7 @@ function buildApnsPayload(payload: Record): Record { notification: {title: 'Alice', body: 'Hello', icon: 'https://cdn.example/avatar.png'}, }); expect(payload.image_url).toBeUndefined(); - expect(payload.aps).not.toHaveProperty('mutable-content'); + expect(payload.aps).toHaveProperty('mutable-content', 1); expect(payload.author_avatar_url).toBe('https://cdn.example/avatar.png'); }); it('imports the APNs signing key once per PEM and rejects a truncated one every time', async () => {