SetMessage method: PTNotification class

Syntax

SetMessage(message, channel)

Description

Use this method to set the message payload per channel. For mail channel, content type and encoding are configured separately.

Parameters

Parameter Description

message

Specifies the message payload as a String value.

channel

Specifies the message channel as a Number value. The channels are as follows:

  • 0 - All

  • 1 - Push notification

  • 2 - Mail notification

  • 3 - Text notification

Returns

None.

Example

&objBroadcast.SetMessage("This is for demo", 0);