Last updated:
0 purchases
readsms
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();
copied to clipboard
Call the read method on the plugin object;
plugin.read();
copied to clipboard
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);
});
copied to clipboard
That's all you need to do.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.