From c65c4e8e31bc8e3be2189f05326348fd09331c00 Mon Sep 17 00:00:00 2001 From: xamplum <43783245+xamplum@users.noreply.github.com> Date: Wed, 29 Mar 2023 14:12:46 +0200 Subject: [PATCH 1/2] fix crash "The collection has been marked as complete with regards to additions". by removing "queue.CompleteAdding();" from completeAsync for logout. This issue happened if user logged out and directly logged back in again without closing app first --- sdk/Notifo.SDK.Core/CommandQueue/DefaultCommandQueue.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/sdk/Notifo.SDK.Core/CommandQueue/DefaultCommandQueue.cs b/sdk/Notifo.SDK.Core/CommandQueue/DefaultCommandQueue.cs index 9b0c484..d72a90b 100644 --- a/sdk/Notifo.SDK.Core/CommandQueue/DefaultCommandQueue.cs +++ b/sdk/Notifo.SDK.Core/CommandQueue/DefaultCommandQueue.cs @@ -46,8 +46,6 @@ public DefaultCommandQueue( public async Task CompleteAsync( CancellationToken ct) { - queue.CompleteAdding(); - Trigger(); foreach (var trigger in commandTriggers.OfType()) From 4a2b847fed678139e107fa6fb86bc6a6b55e9529 Mon Sep 17 00:00:00 2001 From: xamplum <43783245+xamplum@users.noreply.github.com> Date: Wed, 29 Mar 2023 14:22:19 +0200 Subject: [PATCH 2/2] update Version to 1.2.1-beta4 --- Directory.Build.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Build.props b/Directory.Build.props index 2d56e69..8859363 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -8,7 +8,7 @@ MIT https://notifo.io notifo xamarin firebase - 1.2.1-beta3 + 1.2.1-beta4 9