From a5cc3aec92b71f3827ac39989fa730497bd2e471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20D=E2=80=99Aquino?= Date: Fri, 23 Aug 2024 16:43:54 -0700 Subject: [PATCH] Fix push notification DM decryption MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit fixes an issue where DM contents would not be displayed on a push notification, by giving the notification extension access to the keychain group which contains the user's private key Testing -------- PASS Device: iPhone 13 mini iOS: 17.6.1 Damus: This commit Setup: - Make sure that device is setup with push notifications - DM notifications enabled - Device registered with push notification server Steps: 1. Send a DM push notification to yourself 2. Ensure DM contents can be decrypted on the push notification body Signed-off-by: Daniel D’Aquino Closes: https://github.com/damus-io/damus/issues/2388 --- .../DamusNotificationService.entitlements | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DamusNotificationService/DamusNotificationService.entitlements b/DamusNotificationService/DamusNotificationService.entitlements index b5d14b53..d4753959 100644 --- a/DamusNotificationService/DamusNotificationService.entitlements +++ b/DamusNotificationService/DamusNotificationService.entitlements @@ -10,5 +10,9 @@ com.apple.security.network.client + keychain-access-groups + + $(AppIdentifierPrefix)com.jb55.damus2 +