sms_mms
0.1.0, released 5 weeks ago by an unverified publisher
Opens the native Android and iOS messaging app to send SMS or MMS with attachments.
What it does
Opens the native device messaging app pre-populated with recipients, a message body, and optional file attachments. On Android it skips the app chooser, while on iOS it presents the system compose sheet and returns whether the message was sent or cancelled.
AI-written summary of version 0.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want users to send an SMS or MMS using their native messaging app with pre-filled content.
- You need to attach files like images or PDFs to a message compose sheet.
Skip it when
- You need to send text messages programmatically in the background without user interaction.
- Targeting platforms other than Android and iOS (web and desktop are not supported).
Strengths
- Supports multiple file attachments on both Android and iOS.
- No extra setup or permissions needed in your app.
- Handles custom messaging apps on Android gracefully.
Weaknesses
- Cannot send messages automatically without the user tapping send.
- Android results cannot report whether the message was actually sent due to platform limitations.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
No setup is needed in your app; the plugin brings its own FileProvider and manifest entries.
import 'package:sms_mms/sms_mms.dart';
final result = await SmsMms.send(
recipients: ['+4915112345678'],
message: 'Here is the invoice',
filePaths: [invoicePdf.path, photo.path],
);Alternatives
Packages that do the same job and could replace sms_mms.
- flutter_sms
A Flutter plugin to send SMS and MMS on iOS and Android.
77Compare - flutter_mailer
Share email content via device email client with support for multiple attachments.
71Compare - android_sms_reader
A Flutter plugin to read, filter, search, and stream SMS messages on Android.
70Compare - flutter_sms_inbox
Android plugin to query SMS inbox messages in Flutter apps.
71Compare
Works with
Packages commonly used together with sms_mms: ones it builds on, ones built on it, and its own family.