sms_detector 0.0.1 copy "sms_detector: ^0.0.1" to clipboard
sms_detector: ^0.0.1 copied to clipboard

outdated

A flutter plugin for receiving incoming sms in android. Currently supports on only Android.

Flutter SMS Detector #

A flutter plugin for receiving incoming sms in android. Currently supports on only Android.

Usage #

To use this plugin, add sms_detector as a dependency in your pubspec.yaml file.

Example #

@override
  void initState() {
    super.initState();
    retrieveNewSms();
  }

  // call this method to start sms receiver
  retrieveNewSms() async {
    _smsBody = await SmsDetector.waitForSmsReceive();
    setState(() {});
  }


  @override
  void dispose() {
    //stop sms receiver
    SmsDetector.stopSmsReceiver();
    super.dispose();
  }
0
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A flutter plugin for receiving incoming sms in android. Currently supports on only Android.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on sms_detector