sendSMS method

Future<bool?> sendSMS({
  1. required String phoneNumber,
  2. required String message,
  3. required int subId,
})

Supported for both android and iOS This requires the SEND_SMS permissions for android. SMS is sent in the background for android and for iOS the plugin uses MFMessageComposeViewController

Implementation

Future<bool?> sendSMS(
    {required String phoneNumber,
    required String message,
    required int subId}) async {
  return await SimDataPlatform.instance
      .sendSMS(phoneNumber: phoneNumber, message: message, subId: subId);
}