Table of Contents

TTMSFNCCustomWebPushSender.SendNotification Method

Sends a raw JSON payload to a single subscription with default delivery options.

API unit family: TMS.TMSFNCWebPushSender Declaring type: TTMSFNCCustomWebPushSender

Overloads

Overload 1

Sends a raw JSON payload to a single subscription with default delivery options.

procedure SendNotification(ASubscription: TTMSFNCWebPushSubscription; const APayLoad: string); overload;

Parameters

Name Description
ASubscription Recipient subscription to deliver to.
APayLoad JSON payload string to send.

Overload 2

Sends a raw JSON payload to a single subscription with the specified delivery options.

procedure SendNotification(ASubscription: TTMSFNCWebPushSubscription; const APayLoad: string; AMessageSettings: TTMSFNCWebPushMessageSettings); overload;

Parameters

Name Description
ASubscription Recipient subscription to deliver to.
APayLoad JSON payload string to send.
AMessageSettings Urgency and topic options for this message.

Overload 3

Sends a notification with a title and body to a single subscription using default delivery options.

procedure SendNotification(ASubscription: TTMSFNCWebPushSubscription; const ATitle, ABody: string); overload;

Parameters

Name Description
ASubscription Recipient subscription to deliver to.
ATitle Notification title.
ABody Notification body text.

Overload 4

Sends a notification with a title and body to a single subscription using the specified delivery options.

procedure SendNotification(ASubscription: TTMSFNCWebPushSubscription; const ATitle, ABody: string; AMessageSettings: TTMSFNCWebPushMessageSettings); overload;

Parameters

Name Description
ASubscription Recipient subscription to deliver to.
ATitle Notification title.
ABody Notification body text.
AMessageSettings Urgency and topic options for this message.

Overload 5

Sends a notification with a title, body, and icon to a single subscription using default delivery options.

procedure SendNotification(ASubscription: TTMSFNCWebPushSubscription; const ATitle, ABody, AIconURL: string); overload;

Parameters

Name Description
ASubscription Recipient subscription to deliver to.
ATitle Notification title.
ABody Notification body text.
AIconURL URL of the notification icon image.

Overload 6

Sends a notification with a title, body, and icon to a single subscription using the specified delivery options.

procedure SendNotification(ASubscription: TTMSFNCWebPushSubscription; const ATitle, ABody, AIconURL: string; AMessageSettings: TTMSFNCWebPushMessageSettings); overload;

Parameters

Name Description
ASubscription Recipient subscription to deliver to.
ATitle Notification title.
ABody Notification body text.
AIconURL URL of the notification icon image.
AMessageSettings Urgency and topic options for this message.

Overload 7

Sends a notification with a title, body, icon, and activation URL to a single subscription using default delivery options.

procedure SendNotification(ASubscription: TTMSFNCWebPushSubscription; const ATitle, ABody, AIconURL, AURL: string); overload;

Parameters

Name Description
ASubscription Recipient subscription to deliver to.
ATitle Notification title.
ABody Notification body text.
AIconURL URL of the notification icon image.
AURL URL opened when the recipient activates the notification.

Overload 8

Sends a notification with a title, body, icon, and activation URL to a single subscription using the specified delivery options.

procedure SendNotification(ASubscription: TTMSFNCWebPushSubscription; const ATitle, ABody, AIconURL, AURL: string; AMessageSettings: TTMSFNCWebPushMessageSettings); overload;

Parameters

Name Description
ASubscription Recipient subscription to deliver to.
ATitle Notification title.
ABody Notification body text.
AIconURL URL of the notification icon image.
AURL URL opened when the recipient activates the notification.
AMessageSettings Urgency and topic options for this message.

Overload 9

Sends a fully composed notification object to a single subscription using default delivery options.

procedure SendNotification(ASubscription: TTMSFNCWebPushSubscription; const APayload: TTMSFNCWebPushNotification); overload;

Parameters

Name Description
ASubscription Recipient subscription to deliver to.
APayload Notification to serialize and send.

Overload 10

Sends a fully composed notification object to a single subscription using the specified delivery options.

procedure SendNotification(ASubscription: TTMSFNCWebPushSubscription; const APayload: TTMSFNCWebPushNotification; AMessageSettings: TTMSFNCWebPushMessageSettings); overload;

Parameters

Name Description
ASubscription Recipient subscription to deliver to.
APayload Notification to serialize and send.
AMessageSettings Urgency and topic options for this message.