TTMSFNCCloudPushOver.PushMessage Method
Sends a push notification with only a recipient and a message body.
API unit family: TMSFNCCloudPushOver
Declaring type: TTMSFNCCloudPushOver
Inherited from: TTMSFNCCustomCloudPushOver
Overloads
Overload 1
Sends a push notification with only a recipient and a message body.
procedure PushMessage(AUser, AMessage: string); overload;
Parameters
| Name | Description |
|---|---|
AUser |
The recipient user or group key. |
AMessage |
The body text of the notification. |
Overload 2
Sends a push notification with a recipient, a title, and a message body.
procedure PushMessage(AUser, ATitle, AMessage: string); overload;
Parameters
| Name | Description |
|---|---|
AUser |
The recipient user or group key. |
ATitle |
The title shown above the message body. |
AMessage |
The body text of the notification. |
Overload 3
Sends a push notification to a specific device, with a title and a message body.
procedure PushMessage(AUser, ADevice, ATitle, AMessage: string); overload;
Remarks
Raises an exception when or APIKey is empty.
Parameters
| Name | Description |
|---|---|
AUser |
The recipient user or group key. |
ADevice |
The name of the target device. |
ATitle |
The title shown above the message body. |
AMessage |
The body text of the notification. |
Overload 4
Sends a push notification described by a fully configured message object, including priority, sound, URL, and timestamp options.
procedure PushMessage(AMessage: TTMSFNCCloudPushOverMessage); overload;
Remarks
Raises an exception when the message has no user or when APIKey is empty.
Parameters
| Name | Description |
|---|---|
AMessage |
The message and its delivery options to send. |