Sending An SMS
<uses-permission android:name="android.permission.SEND_SMS"/>sendSms()
Returns Future<void>
Telephony telephony = Telephony.instance;
await telephony.sendSms(
to: "1234567890",
message: "May the force be with you!"
);final SmsSendStatusListener listener = (SendStatus status) {
// Handle the status
};
await telephony.sendSms(
to: "1234567890",
message: "May the force be with you!",
statusListener: listener
);sendSmsByDefaultApp()
Returns Future<void>
SmsSendStatusListener
SendStatus
Last updated