Skip to content

Commit

Permalink
Temporarily make registration challenge notifications "noisy"
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-signal committed Nov 22, 2023
1 parent ff7a5f4 commit 9069c5a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public CompletableFuture<SendPushNotificationResult> sendNotification(final Push
.build();

case CHALLENGE -> new SimpleApnsPayloadBuilder()
.setContentAvailable(true)
.setLocalizedAlertMessage("APN_Message")
.addCustomProperty("challenge", notification.data())
.build();

Expand All @@ -125,7 +125,8 @@ public CompletableFuture<SendPushNotificationResult> sendNotification(final Push
case NOTIFICATION ->
(notification.urgent() || isVoip) ? DeliveryPriority.IMMEDIATE : DeliveryPriority.CONSERVE_POWER;
case ATTEMPT_LOGIN_NOTIFICATION_HIGH_PRIORITY -> DeliveryPriority.IMMEDIATE;
case CHALLENGE, RATE_LIMIT_CHALLENGE -> DeliveryPriority.CONSERVE_POWER;
case CHALLENGE -> DeliveryPriority.IMMEDIATE;
case RATE_LIMIT_CHALLENGE -> DeliveryPriority.CONSERVE_POWER;
};

final String collapseId =
Expand Down

0 comments on commit 9069c5a

Please sign in to comment.