Files
Artemy e060b2bcbb 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.
2026-10-17 19:53:34 +07:00

20 lines
621 B
C#

using Govor.Application.Interfaces.PushNotifications;
using Govor.Application.Interfaces.PushNotifications.Models;
namespace Govor.Application.PushNotifications.Providers;
public class NullPushProvider : IPushNotificationProvider
{
public string Name => "NULL";
public Task<SendPushResult> SendToTokenAsync(string token, PushMessage message)
{
return Task.FromResult(new SendPushResult(1, 0, []));
}
public Task<SendPushResult> SendMulticastAsync(IReadOnlyList<string> tokens, PushMessage message)
{
return Task.FromResult(new SendPushResult(tokens.Count, 0, []));
}
}