Skip to content

Commit

Permalink
Add support for iOS 15 location pushes (https://developer.apple.com/d…
Browse files Browse the repository at this point in the history
  • Loading branch information
veteroGGG authored and Alex Alok committed Jan 11, 2022
1 parent 272a633 commit b3567d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dotAPNS/ApnsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ string GetTopic(ApplePushType pushType)
break;
case ApplePushType.Voip:
return _bundleId + ".voip";
case ApplePushType.Location:
return _bundleId + ".location-query";
case ApplePushType.Unknown:
default:
throw new ArgumentOutOfRangeException(nameof(pushType), pushType, null);
Expand Down
3 changes: 2 additions & 1 deletion dotAPNS/ApplePushType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ public enum ApplePushType
Unknown,
Alert,
Background,
Voip
Voip,
Location
}
}

0 comments on commit b3567d2

Please sign in to comment.