Skip to content

OTP Autofill Stops Working on iOS After First Request #234

Description

@raksilpchotemongkolkul

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions