diff --git a/Directory.Build.props b/Directory.Build.props index 783faff..2d56e69 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -8,7 +8,7 @@ MIT https://notifo.io notifo xamarin firebase - 1.2.1-beta2 + 1.2.1-beta3 9 diff --git a/sdk/Notifo.SDK.Core/NotifoMobilePush/NotifoMobilePushImplementation.ios.cs b/sdk/Notifo.SDK.Core/NotifoMobilePush/NotifoMobilePushImplementation.ios.cs index c794f28..71748dc 100644 --- a/sdk/Notifo.SDK.Core/NotifoMobilePush/NotifoMobilePushImplementation.ios.cs +++ b/sdk/Notifo.SDK.Core/NotifoMobilePush/NotifoMobilePushImplementation.ios.cs @@ -87,10 +87,9 @@ private async Task PullPendingNotificationsAndTrack() continue; } - // Do not "await" here. Trying to save time because of the 30 sec limit of the notification service extension. - // Notifications are pushed as quickly as possible to the ios notification scheduler. - // This could be a memory issue if there is a large amount of notifications. - ShowLocalNotificationAsync(notification).Forget(); + // Must be finished before notification extensions contentHandler is called + // https://developer.apple.com/forums/thread/108340 + await ShowLocalNotificationAsync(notification); } if (trackImmediatly != null)