Please enable JavaScript to view this site.

Altova MobileTogether Designer

Sends an SMS containing the specified text to the specified telephone number (see screenshot below).

MTActionsSendSMS

Note the following points:

 

The recipient's number and the SMS text are specified using XPath expressions.

The recipient's number must be entered as an XPath string containing numbers. Example expression: "004311234567".

If multiple recipients are planned, the XPath expression must be a sequence of string items, for example: ("+4311234567", "0011123456789").

If the design is generated as an AppStore App, then you can choose whether to send the SMS silently (Send silently) or whether the end user sends the SMS, which will be opened in the device's SMS app and await the user's decision (Use SMS App). Note that, for the Send silently option to work, (i) the AppStore App will need the Send SMS privilege, and (ii) the end user's permission will be asked about whether the app may send messages.

If the design is deployed as a MobileTogether solution, then the message is opened in the device's SMS app, and the end user is asked whether the message should be sent. This happens even if the Send silently option is selected.

A static global variable named $MT_SMSAvailable can be used to test whether SMS services are available on the client device. Values of the variable can be true() or false().

 

© 2019 Altova GmbH