From 6af5389a76d7ed27811e64e57cdd92638715e4da Mon Sep 17 00:00:00 2001 From: Stephan <64535398+fairEnough83@users.noreply.github.com> Date: Sat, 12 Feb 2022 16:51:00 +0100 Subject: [PATCH] Added Apn Push Type: Location (#942) --- .../java/com/eatthepath/pushy/apns/PushType.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pushy/src/main/java/com/eatthepath/pushy/apns/PushType.java b/pushy/src/main/java/com/eatthepath/pushy/apns/PushType.java index 76f0bcfc9..422770cfd 100644 --- a/pushy/src/main/java/com/eatthepath/pushy/apns/PushType.java +++ b/pushy/src/main/java/com/eatthepath/pushy/apns/PushType.java @@ -113,7 +113,19 @@ public enum PushType { * * @since 0.13.10 */ - MDM("mdm"); + MDM("mdm"), + + /** + *
Indicates that a push notification is intended to request a location from the receiving device to contact the issuers + * server. According to Apple's documentation:
+ * + *Use the {@code location} push type for notifications that request a user’s location. + * If you set this push type, the apns-topic header field must use your app’s bundle ID with .location-query + * appended to the end+ * + * @since 0.15.1 + */ + LOCATION("location"); private final String headerValue;