Sending An SMS
Requires SEND_SMS
permission.
Add the following permission in your AndroidManifest.xml
sendSms()
Returns Future<void>
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.
sendSmsByDefaultApp()
Returns Future<void>
Opens the default SMS app with the number and the message passed to the function.
SmsSendStatusListener
Receives SendStatus
when SMS is sent
and delivered
.
SendStatus
Last updated