Skip to main content

mobileComposeTextMessage

Type

command

Summary

Opens a new text message in the user's text messaging program.

Syntax

mobileComposeTextMessage <recipients>, [<body>]

Description

Use the mobileComposeTextMessage command to create a text message from within a mobile app.

This command interfaces with the mobile text composition interface.

Some devices are not configured with text sending capability. To determine if the current device is capable of sending text messages, use the mobileCanComposeTextMessage function. This returns true if the text client is configured.

note

Once the mobileComposeTextMessage command is called, you have no more control over what the user does with the message. They are free to modify the message and the telephone numbers as they see fit.

note

On Android, the text messaging application can be a user preferred application that allows multiple text massages to be sent. LiveCode only receives cancel. The success of text deliveries is not returned in these cases.

Parameters

NameTypeDescription

recipients

A comma delimited list of telephone numbers.

body

The body text of the message.

Examples

mobileComposeTextMessage "555 555 555", "This is the text body"

function: mobileCanComposeTextMessage

Compatibility and Support

Introduced

LiveCode 5.5

OS

ios

android

Platforms

mobile

Thank you for your feedback!

Was this page helpful?