We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After getting the 'Allow' or 'Deny' pop-up, the app crashed. I tried this on a Xiaomi device.
OTPTextEditController
Your Firebase App verification code is 123456 signature_code_here
class PhoneDetector { final OTPInteractor _otpInteractor = OTPInteractor(); late OTPTextEditController controller; void detectPhoneNumber() { _otpInteractor.hint.then(phoneDetector); } void getSignature() { _otpInteractor.getAppSignature().then((signature) { debugPrint('Your app signature:$signature'); }); } void phoneDetector(String? value) { final _phone = value.getMobileNumberAuto(countryCode); } void listenForCode() { controller = OTPTextEditController( codeLength: 6, onCodeReceive: (code) { if (code.isEmpty) return; codeUpdated(code); }, otpInteractor: _otpInteractor, onTimeOutException: () { controller.startListenUserConsent( (code) { final exp = RegExp(r'(\d{6})'); return exp.stringMatch(code ?? '') ?? ''; }, ); }, )..startListenUserConsent( (code) { final exp = RegExp(r'(\d{6})'); return exp.stringMatch(code ?? '') ?? ''; }, ); } // @override void codeUpdated(String code) { debugPrint('SMS AUTOFILL CODE:$code'); } void detectorDispose() { controller.stopListen(); } }
The text was updated successfully, but these errors were encountered:
Link to Pyrus task
Sorry, something went wrong.
No branches or pull requests
Actual Behavior
After getting the 'Allow' or 'Deny' pop-up, the app crashed. I tried this on a Xiaomi device.
Steps to Reproduce
OTPTextEditController
.Details
Sample SMS
Full Code
Checklist for Self-Check
The text was updated successfully, but these errors were encountered: