diff --git a/Directory.Build.props b/Directory.Build.props index ae3d33e..783faff 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -8,7 +8,7 @@ MIT https://notifo.io notifo xamarin firebase - 1.2.1-beta1 + 1.2.1-beta2 9 diff --git a/sdk/Notifo.SDK.Core/NotifoMobilePush/NotifoMobilePushImplementation.ios.cs b/sdk/Notifo.SDK.Core/NotifoMobilePush/NotifoMobilePushImplementation.ios.cs index d3d96d3..c794f28 100644 --- a/sdk/Notifo.SDK.Core/NotifoMobilePush/NotifoMobilePushImplementation.ios.cs +++ b/sdk/Notifo.SDK.Core/NotifoMobilePush/NotifoMobilePushImplementation.ios.cs @@ -155,6 +155,8 @@ private async Task> GetPendingNotifications1_0Async(in private async Task> 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;