Skip to content

Commit b5e3b61

Browse files
committedMar 23, 2025
Add support for the new DO_NOT_AWAKEN delivery priority
1 parent 85eedde commit b5e3b61

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎pushy/src/main/java/com/eatthepath/pushy/apns/DeliveryPriority.java

+7-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,13 @@ public enum DeliveryPriority {
4848
* <p>Indicates that the APNs server should attempt to deliver a notification "at a time that conserves power on
4949
* the device receiving it."</p>
5050
*/
51-
CONSERVE_POWER(5);
51+
CONSERVE_POWER(5),
52+
53+
/**
54+
* Indicates that the APNs should "prioritize the device’s power considerations over all other factors for delivery,
55+
* and prevent awakening the device."
56+
*/
57+
DO_NOT_AWAKEN(1);
5258

5359
private final int code;
5460

0 commit comments

Comments
 (0)