Skip to content

Commit

Permalink
Added Apn Push Type: Location (#942)
Browse files Browse the repository at this point in the history
  • Loading branch information
fairEnough83 authored Feb 12, 2022
1 parent 73e3545 commit 6af5389
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion pushy/src/main/java/com/eatthepath/pushy/apns/PushType.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,19 @@ public enum PushType {
*
* @since 0.13.10
*/
MDM("mdm");
MDM("mdm"),

/**
* <p>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:</p>
*
* <blockquote>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</blockquote>
*
* @since 0.15.1
*/
LOCATION("location");

private final String headerValue;

Expand Down

0 comments on commit 6af5389

Please sign in to comment.