Skip to content
Send iOS and Android SMS and MMS in Flutter
Dart Ruby Kotlin Swift Objective-C HTML
Branch: master
Clone or download
rodydavis Merge pull request #12 from fluttercommunity/dev
New Changes to Kotlin and Swift
Latest commit fe7c457 Oct 28, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode updating pod spec Oct 28, 2019
android
example updating swift plugin Oct 28, 2019
ios
lib moving to flutter comm May 24, 2019
screenshots updated readme Aug 16, 2018
.DS_Store updating to latest version Oct 28, 2019
.gitattributes Initial commit Aug 15, 2018
.gitignore Make sure iOS callback is called correctly Oct 11, 2018
.metadata Initial commit Aug 15, 2018
CHANGELOG.md
LICENSE Initial commit Aug 15, 2018
README.md
flutter_sms.iml updating project Oct 28, 2019
pubspec.yaml updating pod spec Oct 28, 2019

README.md

Flutter Community: flutter_sms

Buy Me A Coffee Donate

flutter_sms

alt-text-1

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 FlutterSms
        .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 SMS Android MMS
alt-text-1 alt-text-2

You can find other screenshots here.

You can’t perform that action at this time.