Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IPushNotificationService.cs
1using System.Threading;
2using Waher.Events;
5
7{
8
13 {
19
26 bool TryGetToken(PushMessagingService Source, out string? Token);
27
31 event EventHandlerAsync<TokenEventArgs>? OnNewToken;
32
38 Task CheckPushNotificationToken(TokenInformation? TokenInformation = null, CancellationToken CancellationToken = default);
39 }
40}
Contains information about a push notification token.
A service that can be loaded and unloaded at will. Typically during startup and shutdown of an applic...
EventHandlerAsync< TokenEventArgs >? OnNewToken
Event raised when a new token is made available.
bool TryGetToken(PushMessagingService Source, out string? Token)
Tries to get a token from a push notification service.
Task CheckPushNotificationToken(TokenInformation? TokenInformation=null, CancellationToken CancellationToken=default)
Checks if the Push Notification Token is current and registered properly.
Task NewToken(TokenInformation TokenInformation)
New token received from push notification back-end.
PushMessagingService
Push messaging service used.