readsms 0.0.1+1 copy "readsms: ^0.0.1+1" to clipboard
readsms: ^0.0.1+1 copied to clipboard

outdated

A flutter plugin that reads incoming SMS on device as a broadcast stream.

readsms #

This is a plugin made for flutter to read incoming sms on the device as a broadcast stream.

Following steps describe how to use the plugin ReadSms :-

  • Add the required permission in androidManifest file.
  <uses-permission android:name="android.permission.RECEIVE_SMS" />   
  • Ask the user for Sms permission. You can do this using Permission handler package.
  • Create an instance of ReadSms.
  final plugin = ReadSms();
  • Call the read method on the plugin object;
  plugin.read();
  • Access the stream exposed by the plugin object and get the incoming SMS.
  plugin.smsStream.listen((sms)=>print(sms));

That's all you need to do.

46
likes
0
pub points
89%
popularity

Publisher

verified publisheraayushsharma.me

A flutter plugin that reads incoming SMS on device as a broadcast stream.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on readsms