FLUTTER ECOSYSTEM

Ayush783/readsms_plugin

Android पर SMS पढ़ने के लिए Flutter प्लगइन।

readsms_plugin प्रोजेक्ट कवर
Stars
8
Forks
21
अंतिम पुश (UTC)
8 सित॰ 2024
प्रोजेक्ट स्थिति
सक्रिय
Aayush sharma GitHub avatar
GITHUB User

Aayush sharma ↗

SDE @ India Today Group | Flutter Developer

भाषाएँDartKotlinRubyObjective-C

तकनीकी विषय

इस रिपॉज़िटरी के पैकेज

उपयोग की गई निर्भरताएँ

निर्भरता सूची 3 आइटम
  • flutter{"sdk":"flutter"}
  • flutter_testडेवलपमेंट{"sdk":"flutter"}
  • flutter_lintsडेवलपमेंट^2.0.0

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

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.