group_smskit 0.0.1 copy "group_smskit: ^0.0.1" to clipboard
group_smskit: ^0.0.1 copied to clipboard

A Flutter plugin to send SMS messages directly from Android and iOS devices using platform-specific native code.

group_smskit #

A Flutter plugin to send SMS messages from Android and iOS devices using native platform code.

This plugin enables developers to send text messages to one or multiple recipients directly from a Flutter application using platform channels.


✨ Features #

  • ✅ Send SMS messages from Android using SmsManager.
  • ✅ Open native SMS composer on iOS using MFMessageComposeViewController.
  • ✅ Supports multiple recipients.
  • ✅ Clean method channel-based implementation.

🔧 Installation #

Add the dependency in your pubspec.yaml:

dependencies:
  group_smskit:


🚀 Usage #

Dart Example #

import 'package:group_smskit/group_smskit.dart';

ElevatedButton(
    onPressed: () async {
        await requestSmsPermission();
        await SmsSender.sendSms(numbers: ['9876543210', '9123456789'], message: 'Hii...!!');
    },
    child: const Text(" SEND SMS"),
)


📱 Platform-specific Setup #

Android #

  1. Permissions

Add this to your android/app/src/main/AndroidManifest.xml:

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

You must request SMS permission at runtime (Android 6.0+). Use permission_handler:

import 'package:permission_handler/permission_handler.dart';

await Permission.sms.request();
  1. Real Device Required

SMS functionality must be tested on a real device, not an emulator.


iOS #

  1. Info.plist Setup

Add this to your ios/Runner/Info.plist:

<key>NSContactsUsageDescription</key>
<string>This app uses contacts to send SMS.</string>
  1. Note:

On iOS, the plugin opens the default SMS composer. The user must manually press Send — direct sending is not allowed on iOS due to platform restrictions.


💡 Notes #

  • On Android, SMS is sent in the background using SmsManager.
  • On iOS, the native composer UI is presented and must be submitted by the user.
  • Always ensure permissions are granted before sending SMS.

📌 Supported Platforms #

Platform Supported
Android
iOS

📄 License #

MIT License. See LICENSE for details.


🙌 Contributions #

Contributions are welcome! Feel free to open issues or pull requests.


🔗 Author #

Developed by Pradip Jadav

0
likes
150
points
133
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to send SMS messages directly from Android and iOS devices using platform-specific native code.

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on group_smskit