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

outdated

Flutter plugin to provide SMS User Consent API gives the content of a single SMS message to us if the user gives permission.

otp_consent #

Flutter plugin to provide SMS User Consent API gives the content of a single SMS message to us if the user gives permission. For Android, that's where this package is useful. No need for iOS

Example app

Getting Started #

SMS need to follow some rules as describe here

  • Contains one-time code
  • 4-10 digit alphanumeric with one number
  • Not from contact

Usage #

import 'import package:otp_consent/otp_consent.dart';

Extend OtpConsentAutoFill mixin that will offer you:

  • startSmsListening(): to listen SMS code from the native
  • stopSmsListen(): to stop listen broadcast receiver from native
  • smsReceived(sms): call get value otp when the sms is received.
  • sms: get sms code received
1
likes
30
pub points
39%
popularity

Publisher

verified publisherhuynn109.me

Flutter plugin to provide SMS User Consent API gives the content of a single SMS message to us if the user gives permission.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on otp_consent