telephony_sms

Creator: coderz1093

Last updated:

0 purchases

telephony_sms Image
telephony_sms Images

Languages

Categories

Add to Cart

Description:

telephony sms

telephony_sms #

A Flutter plugin that allows you to send SMS messages in the background.
Note that his plugin works only supports Android as it uses Telephony which is a package provided by Android




Android




Support
SDK 16+



Setup #
To use this plugin you need to add SEND_SMS permission in the AndroidManifest.xml file. There are debug, main and profile versions which are chosen depending on how you start your app. In general, it's sufficient to add permission only to the main version.
<uses-permission android:name="android.permission.SEND_SMS" />
<application>
...
copied to clipboard
How to use #
First you need to request for the previously added SEND_SMS permission.
final _telephonySMS = TelephonySMS();

await _telephonySMS.requestPermission();
copied to clipboard
Now you can send any SMS message to any phone number desired.
await _telephonySMS.sendSMS(phone: "PHONE", message: "MESSAGE");
copied to clipboard
It is just as simple as that.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.