Harden push notification delivery

Keep encrypted message content out of push payloads and improve cross-platform notification data. Add token registration validation and per-session unregister support, batch and deduplicate sends, remove only confirmed unregistered tokens, and protect queued retries with leases. Add delivery tests and document the push API and Firebase setup.
This commit is contained in:
Artemy
2026-10-17 19:53:34 +07:00
parent 9aa7e017e2
commit e060b2bcbb
21 changed files with 16353 additions and 132 deletions
@@ -1,3 +1,6 @@
namespace Govor.Application.Interfaces.PushNotifications.Models;
public record SendPushResult(int SuccessCount, int FailureCount, IEnumerable<string> FailedTokens);
/// <param name="SuccessCount">Tokens accepted by the provider.</param>
/// <param name="FailureCount">All failed sends, including retryable errors.</param>
/// <param name="FailedTokens">Only permanently unregistered tokens that can safely be deleted.</param>
public record SendPushResult(int SuccessCount, int FailureCount, IEnumerable<string> FailedTokens);