A modern MMS / SMS plugin for Android that provides comprehensive messaging functionality for Flutter applications. iOS support coming soon!
Note: This is my first package published to pub.dev and may not fully align with best practices. I'll continue iterating on this as my personal needs grow, and my overall knowledge develops. Feel free to submit a PR or contact me directly for any contributions.
- π± Send and receive SMS and MMS messages
- π¬ Manage conversations and threads
- π₯ Handle contacts and participants
- π Support for MMS attachments
- π Access device and SIM card information
- π Query message history
- π Local notification support
| Android | iOS | Web | macOS | Windows | Linux |
|---|---|---|---|---|---|
| β | β | β | β | β | β |
Add this to your package's pubspec.yaml file:
dependencies:
simple_sms: ^0.0.1Then run:
flutter pub getAdd the following permissions to your AndroidManifest.xml:
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.READ_CONTACTS" />Don't forget to request runtime permissions in your app.
import 'package:simple_sms/android.dart';
// Send an SMS
final message = OutboundMessage(
address: '+1234567890',
body: 'Hello from simple_sms!',
);
await AndroidMessaging.sendMessage(message);
// Query conversations
final conversations = await AndroidMessaging.getConversations();
// Access device information
final device = await Device.getDeviceInfo();
final simCards = await Device.getSimCards();The plugin exports various models for working with messages:
Sms- SMS message dataMms- MMS message dataMmsPart- MMS attachment partsOutboundMessage- For sending messagesMmsSmsConversations- Conversation threadsContact- Contact informationMmsParticipant- Message participantsDevice- Device informationSimCard- SIM card details
BSD-style license. See LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request.
Visit simplezen.io for more information.# simple-sms