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

A Flutter plugin for sending native sms. for android only

flutter_native_sms #

A Flutter plugin for sending native sms. for android only

Getting Started #

  import 'package:flutter_native_sms/flutter_native_sms.dart';

To use this package import it first

Usage #

First u need to add required permissions :

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

also you may also need to request sms permission from user with permission_handler package

   await Permission.sms.request();
  // Returns either true on successful send or throws exception
 FlutterNativeSms sms =  new FlutterNativeSms();
 sms.send(phone:'phone number your want to send the sms', smsBody:'A sms text',sim:'sim1');

note : sim is not implemented yet

0
likes
0
points
103
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for sending native sms. for android only

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_native_sms