From db17693ba7c568cf03e7ceb33f010fd7a8c7a6af Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Wed, 22 Nov 2023 10:56:24 -0500 Subject: [PATCH] Revert "Temporarily make registration challenge notifications "noisy"" This reverts commit 9069c5abb67a422f5635b13d23356b6ced491e7a. --- .../org/whispersystems/textsecuregcm/push/APNSender.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/push/APNSender.java b/service/src/main/java/org/whispersystems/textsecuregcm/push/APNSender.java index fe78c7bc9..72f7cfa5a 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/push/APNSender.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/push/APNSender.java @@ -103,7 +103,7 @@ public CompletableFuture sendNotification(final Push .build(); case CHALLENGE -> new SimpleApnsPayloadBuilder() - .setLocalizedAlertMessage("APN_Message") + .setContentAvailable(true) .addCustomProperty("challenge", notification.data()) .build(); @@ -125,8 +125,7 @@ public CompletableFuture sendNotification(final Push case NOTIFICATION -> (notification.urgent() || isVoip) ? DeliveryPriority.IMMEDIATE : DeliveryPriority.CONSERVE_POWER; case ATTEMPT_LOGIN_NOTIFICATION_HIGH_PRIORITY -> DeliveryPriority.IMMEDIATE; - case CHALLENGE -> DeliveryPriority.IMMEDIATE; - case RATE_LIMIT_CHALLENGE -> DeliveryPriority.CONSERVE_POWER; + case CHALLENGE, RATE_LIMIT_CHALLENGE -> DeliveryPriority.CONSERVE_POWER; }; final String collapseId =