mirror of
https://github.com/Govor-team/Govor.git
synced 2026-11-16 20:56:03 +00:00
e060b2bcbb
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.
20 lines
621 B
C#
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, []));
|
|
}
|
|
}
|