Insert a message in the wic_conf to be sent to a mobile device. It should be informed device_uuid or user_code.
1 mobile.sendMessage
<mobile.sendMessage
device-uuid='device-uuid'
user-code='user-code'
message-pirority='message-pirority'
message-code='message-code'
message-vibrate='message-vibrate'
message-sound='message-sound'
message-notify='message-notify'
>
<message_data /> ?
</mobile.sendMessage>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Adevice-uuid | String | UUID of the device to which you want to send the message. | |||
Auser-code | String | User to which you want to send the message, it will be send to the last device with which the user has connected to the system. | |||
Amessage-pirority | String | Channel through which the message will travel. | |||
Amessage-code | String | Message code. | |||
Amessage-vibrate | Integer | Miliseconds which the device should vibrate upon receiving the message. | |||
Amessage-sound | Integer | Miliseconds which the notification should ring upon receiving the message. | |||
Amessage-notify | Boolean | True to indicate that the device should show a notification. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Emessage_data | String |
Returns | |
---|---|
Type | Description |
Integer | Serial register in wic_mobile_device_messages. |
Example
Print on screen a result.
Copy
<xsql-script> <body> <return> <mobile.sendMessage message-piority="soap" device-uuid="2dc27147-bf75-342e-9582-5f5ab2876d41" message-code="POPUP" message-vibrate="5000" message-sound="5000" message-notify="true" > <string>Testing popup 11111111</string> </mobile.sendMessage> </return> </body> </xsql-script>