Skip to content

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

License

Notifications You must be signed in to change notification settings

huynn109/otp_consent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Screenshot

Usage

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

Extend OtpConsentAutoFill mixin that will offer you:

  • startOtpConsent(): to listen SMS code from the native
  • stopOtpConsent(): to stop listen broadcast receiver from native
  • smsReceived(sms): call get value otp when the sms is received.
  • sms: get sms received

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published