Skip to content

Commit

Permalink
Merge pull request #24 from notifo-io/fix/handleLocalNotifications
Browse files Browse the repository at this point in the history
await for scheduling all local notifications
  • Loading branch information
xamplum authored Jan 31, 2023
2 parents 84693db + 47b0439 commit 8a9d68d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
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-beta2</Version>
<Version>1.2.1-beta3</Version>
<LangVersion>9</LangVersion>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8a9d68d

Please sign in to comment.