FLUTTER ECOSYSTEM

Ayush783/readsms_plugin

Flutter plugin for reading sms on Android.

readsms_plugin project cover
Stars
8
Forks
21
Last push (UTC)
Sep 8, 2024
Project status
Active
Aayush sharma GitHub avatar
GITHUB User

Aayush sharma ↗

SDE @ India Today Group | Flutter Developer

India Today GroupDelhi NCROfficial website ↗
LanguagesDartKotlinRubyObjective-C

Technical topics

Packages published by this repository

Dependencies used

Dependency list 3 items
  • flutter{"sdk":"flutter"}
  • flutter_testDevelopment{"sdk":"flutter"}
  • flutter_lintsDevelopment^2.0.0

Original README

English project snapshot. Visit GitHub for the latest content.

Expand / collapse project README

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.