mirror of
https://github.com/Govor-team/Govor.git
synced 2026-11-17 21:09:00 +00:00
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:
@@ -9,11 +9,11 @@ public class NullPushProvider : IPushNotificationProvider
|
||||
|
||||
public Task<SendPushResult> SendToTokenAsync(string token, PushMessage message)
|
||||
{
|
||||
return Task.FromResult(new SendPushResult(0, 0, []));
|
||||
return Task.FromResult(new SendPushResult(1, 0, []));
|
||||
}
|
||||
|
||||
public Task<SendPushResult> SendMulticastAsync(IReadOnlyList<string> tokens, PushMessage message)
|
||||
{
|
||||
return Task.FromResult(new SendPushResult(0, 0, []));
|
||||
return Task.FromResult(new SendPushResult(tokens.Count, 0, []));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user