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 committed Dec 22, 2021
1 parent 272a633 commit f08d617
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dotAPNS.AspNetCore/dotAPNS.AspNetCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<Authors>alexalok</Authors>
<Description>Contains classes allowing for usage of dotAPNS package in ASP.NET Core projects.</Description>
<Copyright>Copyright © alexalok 2019-2020</Copyright>
<Copyright>Copyright © alexalok 2019-2021</Copyright>
<Version>2.2.1</Version>
<PackageReleaseNotes>Added an option to disable server certificate validation</PackageReleaseNotes>
<PackageProjectUrl>https://github.com/alexalok/dotAPNS</PackageProjectUrl>
Expand Down
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 f08d617

Please sign in to comment.