TTMSFNCCustomWebPushSender.SendNotificationAll Method
Sends a raw JSON payload to every active subscription in the store using default delivery options. Requires an assigned subscription store.
API unit family: TMS.TMSFNCWebPushSender
Declaring type: TTMSFNCCustomWebPushSender
Overloads
Overload 1
Sends a raw JSON payload to every active subscription in the store using default delivery options. Requires an assigned subscription store.
procedure SendNotificationAll(const APayload: string); overload;
Parameters
| Name |
Description |
APayload |
JSON payload string to send. |
Exceptions
| Exception |
Description |
EWebPush |
Raised when no subscription store is assigned. |
Overload 2
Sends a raw JSON payload to every active subscription in the store using the specified delivery options. Requires an assigned subscription store.
procedure SendNotificationAll(const APayload: string; AMessageSettings: TTMSFNCWebPushMessageSettings); overload;
Parameters
| Name |
Description |
APayload |
JSON payload string to send. |
AMessageSettings |
Urgency and topic options for this message. |
Exceptions
| Exception |
Description |
EWebPush |
Raised when no subscription store is assigned. |
Overload 3
Sends a notification with a title and body to every active subscription in the store using default delivery options. Requires an assigned subscription store.
procedure SendNotificationAll(const ATitle, ABody: string); overload;
Parameters
| Name |
Description |
ATitle |
Notification title. |
ABody |
Notification body text. |
Exceptions
| Exception |
Description |
EWebPush |
Raised when no subscription store is assigned. |
Overload 4
Sends a notification with a title and body to every active subscription in the store using the specified delivery options. Requires an assigned subscription store.
procedure SendNotificationAll(const ATitle, ABody: string; AMessageSettings: TTMSFNCWebPushMessageSettings); overload;
Parameters
| Name |
Description |
ATitle |
Notification title. |
ABody |
Notification body text. |
AMessageSettings |
Urgency and topic options for this message. |
Exceptions
| Exception |
Description |
EWebPush |
Raised when no subscription store is assigned. |
Overload 5
Sends a notification with a title, body, and icon to every active subscription in the store using default delivery options. Requires an assigned subscription store.
procedure SendNotificationAll(const ATitle, ABody, AIconURL: string); overload;
Parameters
| Name |
Description |
ATitle |
Notification title. |
ABody |
Notification body text. |
AIconURL |
URL of the notification icon image. |
Exceptions
| Exception |
Description |
EWebPush |
Raised when no subscription store is assigned. |
Overload 6
Sends a notification with a title, body, and icon to every active subscription in the store using the specified delivery options. Requires an assigned subscription store.
procedure SendNotificationAll(const ATitle, ABody, AIconURL: string; AMessageSettings: TTMSFNCWebPushMessageSettings); overload;
Parameters
| Name |
Description |
ATitle |
Notification title. |
ABody |
Notification body text. |
AIconURL |
URL of the notification icon image. |
AMessageSettings |
Urgency and topic options for this message. |
Exceptions
| Exception |
Description |
EWebPush |
Raised when no subscription store is assigned. |
Overload 7
Sends a notification with a title, body, icon, and activation URL to every active subscription in the store using default delivery options. Requires an assigned subscription store.
procedure SendNotificationAll(const ATitle, ABody, AIconURL, AURL: string); overload;
Parameters
| Name |
Description |
ATitle |
Notification title. |
ABody |
Notification body text. |
AIconURL |
URL of the notification icon image. |
AURL |
URL opened when the recipient activates the notification. |
Exceptions
| Exception |
Description |
EWebPush |
Raised when no subscription store is assigned. |
Overload 8
Sends a notification with a title, body, icon, and activation URL to every active subscription in the store using the specified delivery options. Requires an assigned subscription store.
procedure SendNotificationAll(const ATitle, ABody, AIconURL, AURL: string; AMessageSettings: TTMSFNCWebPushMessageSettings); overload;
Parameters
| Name |
Description |
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. |
Exceptions
| Exception |
Description |
EWebPush |
Raised when no subscription store is assigned. |
Overload 9
Sends a fully composed notification object to every active subscription in the store using default delivery options. Requires an assigned subscription store.
procedure SendNotificationAll(const APayload: TTMSFNCWebPushNotification); overload;
Parameters
| Name |
Description |
APayload |
Notification to serialize and send. |
Exceptions
| Exception |
Description |
EWebPush |
Raised when no subscription store is assigned. |
Overload 10
Sends a fully composed notification object to every active subscription in the store using the specified delivery options. Requires an assigned subscription store.
procedure SendNotificationAll(const APayload: TTMSFNCWebPushNotification; AMessageSettings: TTMSFNCWebPushMessageSettings); overload;
Parameters
| Name |
Description |
APayload |
Notification to serialize and send. |
AMessageSettings |
Urgency and topic options for this message. |
Exceptions
| Exception |
Description |
EWebPush |
Raised when no subscription store is assigned. |