More...
Inherits INotificationSDKServer, and IDisposable.
|
| NotificationSDKServer (NotificationSDKServerCredentials credentials) |
| Constructs a NotificationSDKServer object. More...
|
|
| NotificationSDKServer (NotificationSDKServerCredentials credentials, NotificationSDKServerSettings settings) |
| Constructs a NotificationSDKServer object with the credentials in input. More...
|
|
void | SendNotification (string vascoNotificationIdentifier, Notification notification) |
| Sends a notification, described by a Notification object, using the specified client device identifier. More...
|
|
Dictionary< string, DateTime > | GetIOSInactiveDevices () |
| Returns the list of devices that reported failed-delivery attempts to the Apple Feedback services.
The result is a map, containing the notification identifier mapped to the timestamp when APNs determined that the application no longer exists on the device.- Deprecated:
- GetInactiveDevices is no longer supported by Apple. This function will return null.
More...
|
|
NotificationSDKServerPlatformNames | GetPlatformName (string vascoNotificationIdentifier) |
| Gets the platform name from a VASCONotificationIdentifier identified by its hexadecimal representation. More...
|
|
int | GetPayloadLength (Notification notification, NotificationSDKServerPlatformNames platformName) |
| Gets the notification payload length, in bytes, depending on the given platform name. For all platforms, the payload is encoded in UTF-8 before its length calculation.Therefore, a non-latin character (Cyrillic, Japanese, Arabic, etc.) will have a length greater than 1. Please note that each protocol adds some overhead. The usable length is thus smaller than the theoretical maximum payload length. More...
|
|
void | AwaitSendTerminationAndFinish () |
| Wait for all submitted notifications to be sent and close the instance. More...
|
|
void | Dispose () |
|
|
virtual void | Dispose (bool disposing) |
|
◆ NotificationSDKServer() [1/2]
◆ NotificationSDKServer() [2/2]
◆ AwaitSendTerminationAndFinish()
void AwaitSendTerminationAndFinish |
( |
| ) |
|
|
inline |
Wait for all submitted notifications to be sent and close the instance.
- Exceptions
-
NotificationSDKServerException | |
Implements INotificationSDKServer.
◆ Dispose() [1/2]
◆ Dispose() [2/2]
virtual void Dispose |
( |
bool |
disposing | ) |
|
|
inlineprotectedvirtual |
◆ GetIOSInactiveDevices()
Dictionary<string, DateTime> GetIOSInactiveDevices |
( |
| ) |
|
|
inline |
Returns the list of devices that reported failed-delivery attempts to the Apple Feedback services.
The result is a map, containing the notification identifier mapped to the timestamp when APNs determined that the application no longer exists on the device.
- Deprecated:
- GetInactiveDevices is no longer supported by Apple. This function will return null.
Implements INotificationSDKServer.
◆ GetPayloadLength()
Gets the notification payload length, in bytes, depending on the given platform name. For all platforms, the payload is encoded in UTF-8 before its length calculation.Therefore, a non-latin character (Cyrillic, Japanese, Arabic, etc.) will have a length greater than 1. Please note that each protocol adds some overhead. The usable length is thus smaller than the theoretical maximum payload length.
- Parameters
-
notification | notification containing a title, subject |
platformName | targeted platform name |
- Returns
- The notification payload length in bytes.
Implements INotificationSDKServer.
◆ GetPlatformName()
Gets the platform name from a VASCONotificationIdentifier identified by its hexadecimal representation.
- Parameters
-
vascoNotificationIdentifier | Hexadecimal representation of the VASCO notification identifier. |
- Returns
- the platform name of VASCONotificationIdentifier
Implements INotificationSDKServer.
◆ SendNotification()
void SendNotification |
( |
string |
vascoNotificationIdentifier, |
|
|
Notification |
notification |
|
) |
| |
|
inline |
Sends a notification, described by a Notification object, using the specified client device identifier.
As the process of sending a notification is asynchronous, a callback is necessary in order to handle errors or to report success.
- Parameters
-
vascoNotificationIdentifier | VASCO notification identifier provided by the client. Cannot be null or empty. |
notification | Notification that must be sent to the device |
Implements INotificationSDKServer.
◆ OnSendNotificationError
◆ OnSendNotificationSuccess
The documentation for this class was generated from the following file: