Sending An SMS
Last updated
Last updated
Requires SEND_SMS
permission.
Add the following permission in your AndroidManifest.xml
If you want to listen to the status of the message being sent, provideSmsSendStatusListener
to the sendSms
function.
TIP:
If you want to send an sms to multiple numbers, you may pass multiple numbers separated by a ;
Keep in mind that this method may not work on all devices.
Opens the default SMS app with the number and the message passed to the function.
Receives SendStatus
when SMS is sent
and delivered
.
Parameters
Type
Description
Optional
Default Value
to
String
Number to send SMS to
❌
-
message
String
Message to send
❌
-
isMultipart
bool
If the body of the message is longer than the standard SMS length limit of 160 characters
, you can send a multipart SMS by setting the isMultipart
flag.
✔️
false
statusListener
Receives SMS sent and delivered events
✔️
null
Parameters
Type
Description
Optional
to
String
Number to send SMS to
❌
message
String
Message to send
❌
Type
Values
Enum
SENT
, DELIVERED