Skip to content
New issue

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

OTP Autofill Stops Working on iOS After First Request #234

Open
raksilpchotemongkolkul opened this issue Oct 18, 2024 · 0 comments
Open

Comments

@raksilpchotemongkolkul
Copy link

Hi i got issue about this, OTP autofill works as expected on the first OTP request in iOS, but after I requesting in a second OTP, autofill does not trigger anymore, even if the app is killed and reopened or another OTP is requested. This problem persists even after multiple requests and app restarts, preventing users from using autofill for subsequent OTP entries.

<OTPInputView ref={refInput} autoFocus={true} onInputFocus={0} autoFocusOnLoad={false} style={{width: '90%', height: 120}} pinCount={6} code={otpInput} onCodeChanged={(code) => setOtpInput(code)} onCodeFilled={(code) => setOtpInput(code)} codeInputFieldStyle={{ fontSize: STYLES.SIZE.S25, fontFamily: STYLES.FAMILY.BOLD, borderRadius: 8, color: STYLES.BLUE.CERULEAN, borderColor: STYLES.GREEN.PERSIAN, backgroundColor: STYLES.GREEN.LAVENDER, height: 45, }} autoComplete="sms-otp" keyboardType="number-pad" isAutoFillSupported={true} />

addmore i custom lib by create prop name "isAutoFillSupported"to force set to be like this inside lib
textContentType={isAutoFillSupported ? "oneTimeCode" : "none"}

I do not know howfix that ,
This relate behavior devices or not , I have test with android but it work and autofill,
Please help me thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant