sms_receiver 0.4.2 copy "sms_receiver: ^0.4.2" to clipboard
sms_receiver: ^0.4.2 copied to clipboard

Android SMS Receiver API without permission required.

sms_receiver #

NOTE: This plugin might no longer needed due to flutter/flutter#13015

pub package

Flutter plugin for reading incoming-and-expected SMS only

Currently developed for Android: reading message without requesting SMS permission.

Usage #

  • Generate acceptable message format

    • DON'T generate hash message on runtime using AppSignatureHelper. Store hash as constant inside your app, either on the server or client.
  • Add dependency to this package

  • Create SmsReceiver() with onSmsReceived(String message) handler.

  • Start listening with startListening()

  • Stop listening with stopListening()

  • Once sms received or receiver timed out, use startListening again. See example

    • Receiver timeout is 5 minutes. Currently not configurable.

Future Development #

  • Add/Combine with iOS counterpart
45
likes
120
pub points
85%
popularity

Publisher

verified publisheriqbalmineraltown.com

Android SMS Receiver API without permission required.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on sms_receiver