flutter_sms 2.1.1
flutter_sms: ^2.1.1

Flutter Android iOS

A Flutter plugin to Send SMS and MMS on iOS and Android. If iMessage is enabled it will send as iMessage on iOS. This plugin must be tested on a real device on iOS.

Flutter Community: flutter_sms

Buy Me A Coffee Donate github pages

flutter_sms #

alt-text-1

Online Demo: https://fluttercommunity.github.io/flutter_sms/

Description #

Flutter Plugin for sending SMS and MMS on Android and iOS. If you send to more than one person it will send as MMS. On the iOS if the number is an iPhone and iMessage is enabled it will send as an iMessage.

How To Use #

You can send multiple ways:

  1. Message and No People
  2. People and No Message
  3. Message and People

This will populate the correct fields.

Example #

Make sure to Install and Import the Package.

import 'package:flutter_sms/flutter_sms.dart';

Create a function for sending messages.

void _sendSMS(String message, List<String> recipents) async {
 String _result = await sendSMS(message: message, recipients: recipents)
        .catchError((onError) {
      print(onError);
    });
print(_result);
}

You can quickly send the message with this function.

String message = "This is a test message!";
List<String> recipents = ["1234567890", "5556787676"];

_sendSMS(message, recipents);

Screenshots #

iOS SMSAndroid MMS
alt-text-1alt-text-2

You can find other screenshots here.

56
likes
90
pub points
93%
popularity

Publisher

fluttercommunity.dev

A Flutter plugin to Send SMS and MMS on iOS and Android. If iMessage is enabled it will send as iMessage on iOS. This plugin must be tested on a real device on iOS.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, flutter_user_agent, flutter_web_plugins, plugin_platform_interface, url_launcher

More

Packages that depend on flutter_sms