TTMSFNCWebPushNotification Class
Describes the content and display options of a push notification message. Build an instance, set the desired properties, and pass it to a send method to deliver a fully customized notification.
API unit family: TMS.TMSFNCWebPushSender
Syntax
TTMSFNCWebPushNotification = class
Properties
| Name | Description |
|---|---|
| Badge | URL of the small monochrome image shown when the device cannot display the full notification. |
| Body | Text shown as the notification body below the title. |
| Data | Arbitrary JSON value attached to the notification and delivered to the receiving client. The notification owns the assigned value and frees it when destroyed or reassigned. |
| Dir | Text direction used to display the notification. |
| Icon | URL of the image displayed as the notification icon. |
| Lang | Language tag (BCP 47) describing the notification text, for example en-US. |
| RequireInteraction | When True, the notification stays visible until the recipient interacts with it instead of dismissing automatically. |
| Title | Text shown as the notification title. This is the only required field. |
| URL | URL opened when the recipient activates the notification. |
Methods
| Name | Description |
|---|---|
| ToJSON | Serializes the notification into the JSON payload string sent to the push service. Only fields with a value are included; the text direction is emitted only for an explicit left-to-right or right-to-left setting. |