Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris committed Jan 26, 2023
1 parent 6ba226f commit dee5c88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://notifo.io</PackageProjectUrl>
<PackageTags>notifo xamarin firebase</PackageTags>
<Version>1.2.1-beta1</Version>
<Version>1.2.1-beta2</Version>
<LangVersion>9</LangVersion>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ private async Task<List<UserNotificationDto>> GetPendingNotifications1_0Async(in
private async Task<List<UserNotificationDto>> GetPendingNotifications1_4Async(int take, DateTime after,
CancellationToken ct)
{
// use DeviceIdentifier because Token could change over time and you could miss pending notifications. DeviceIdentifier should be more stable.
// take is not returning the exact amount of entries. It's taking the X last entries, then filters for messages that are unseen.
var result = await Client.Notifications.GetMyDeviceNotificationsAsync(DeviceIdentifier, after, true, take * 2, ct);

return result.Items;
Expand Down

0 comments on commit dee5c88

Please sign in to comment.