Temporarily make registration challenge notifications "noisy"
This commit is contained in:
parent
ff7a5f471b
commit
9069c5abb6
|
@ -103,7 +103,7 @@ public class APNSender implements Managed, PushNotificationSender {
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
case CHALLENGE -> new SimpleApnsPayloadBuilder()
|
case CHALLENGE -> new SimpleApnsPayloadBuilder()
|
||||||
.setContentAvailable(true)
|
.setLocalizedAlertMessage("APN_Message")
|
||||||
.addCustomProperty("challenge", notification.data())
|
.addCustomProperty("challenge", notification.data())
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
@ -125,7 +125,8 @@ public class APNSender implements Managed, PushNotificationSender {
|
||||||
case NOTIFICATION ->
|
case NOTIFICATION ->
|
||||||
(notification.urgent() || isVoip) ? DeliveryPriority.IMMEDIATE : DeliveryPriority.CONSERVE_POWER;
|
(notification.urgent() || isVoip) ? DeliveryPriority.IMMEDIATE : DeliveryPriority.CONSERVE_POWER;
|
||||||
case ATTEMPT_LOGIN_NOTIFICATION_HIGH_PRIORITY -> DeliveryPriority.IMMEDIATE;
|
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 =
|
final String collapseId =
|
||||||
|
|
Loading…
Reference in New Issue