Skip to content

otabaga/readsms_plugin

 
 

Repository files navigation

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 :-

  • 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 of SMS exposed by the plugin object and get the incoming SMS.
  plugin.smsStream.listen((sms){
    print(sms.body);
    print(sms.sender);
    print(sms.timeReceived);
  });

That's all you need to do.

About

Flutter plugin for reading sms on Android.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 51.5%
  • Kotlin 31.3%
  • Ruby 11.1%
  • Objective-C 6.1%