flutter_sms_pro

Version 1.0.0


Description

Flutter plugin for sending SMS and MMS on Android and iOS.

  • If you send to multiple recipients, it will send as MMS.
  • On iOS, if the recipient is an iPhone with iMessage enabled, it will send as an iMessage automatically.

Features

  • Send SMS or MMS to one or multiple recipients.
  • Direct SMS sending on iOS using native message composer.
  • Launches SMS app on Android and iOS simulators as fallback.
  • Check if device supports sending SMS.

Getting Started

Add the package to your pubspec.yaml:

dependencies:
  flutter_sms_pro: ^1.0.0

Usage Example

Here’s how to send an SMS message using the plugin: dart

void sendSMS() async {
const message = "Hello from flutter_sms_pro!";
final recipients = ['+1234567890'];

try {
final result = await FlutterSmsPro.sendSMS(
message: message,
recipients: recipients,
);
print('SMS send result: $result');
} catch (e) {
print('Failed to send SMS: $e');
}
}

Make sure to add the SMS permission in your AndroidManifest.xml:

<uses-permission android:name="android.permission.SEND_SMS"/>