From b5e3b610239152bd219c5e918f8e34fe43455512 Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Sun, 23 Mar 2025 11:47:43 -0400 Subject: [PATCH] Add support for the new `DO_NOT_AWAKEN` delivery priority --- .../java/com/eatthepath/pushy/apns/DeliveryPriority.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pushy/src/main/java/com/eatthepath/pushy/apns/DeliveryPriority.java b/pushy/src/main/java/com/eatthepath/pushy/apns/DeliveryPriority.java index 0f21018f5..fe1d9ce70 100644 --- a/pushy/src/main/java/com/eatthepath/pushy/apns/DeliveryPriority.java +++ b/pushy/src/main/java/com/eatthepath/pushy/apns/DeliveryPriority.java @@ -48,7 +48,13 @@ public enum DeliveryPriority { *

Indicates that the APNs server should attempt to deliver a notification "at a time that conserves power on * the device receiving it."

*/ - CONSERVE_POWER(5); + CONSERVE_POWER(5), + + /** + * Indicates that the APNs should "prioritize the device’s power considerations over all other factors for delivery, + * and prevent awakening the device." + */ + DO_NOT_AWAKEN(1); private final int code;