Documentation
VISU_PostNotification
Require: IP-Symcon >= 7.0
variant VISU_PostNotification (int $InstanceID, string $Title, string $Text, string $Type, int $TargetID)
Parameters
InstanceID | ID of the tile visualization |
Title | Title of the message (maximum 32 characters). Can also be empty. |
Text | message text (up to 256 characters). |
Type | The type of the message influences the sound played and the icon when receiving. |
TargetID | The ID of the object that will be opened when tapping the message |
Returns
If the command could be executed successfully, it returns the ID of the notification as the result, otherwise FALSE.
Description
Sends a push message with Title, Text to all devices assigned to the visualization with the ID InstanceID.
The TargetID object must be available within the specified tile visualization!
If messages should be sent to further groups (special case: also single devices), another page frame visualization must be created per group
Please note that push notifications are forwarded encrypted via the IP-Symcon server to Apple/Google, and this implies a certain delay time. If there are too many messages in a row, Apple/Google's services will automatically delay the deliveries, which IP-Symcon cannot influence
The use of this feature requires, as already described in the description of the visualization, a valid subscription. You can extend this subscription at any time via our Shop. In addition, the device must be registered in IP-Symcon. You can find more information about this under the item Notification Control
Example
VISU_PostNotification(12345, 'Weather', 'It's raining soon', 'Info', 54321);