sms_autofill icon indicating copy to clipboard operation
sms_autofill copied to clipboard

OTP doesn't filled sometimes

Open 0Vipin0 opened this issue 4 years ago • 10 comments

I am using this library to fill the OTP which works in most of the cases, but sometime it doesn't catch the OTP even though the message is arrived properly with the OTP in the required format. I have to manually type the OTP which degrades the User Experience. Anyone else is facing similar issue or having a workaround for this is highly appreciated. Also, is there any we can make sure that the OTP is picked all the times rather than most times @jaumard?

0Vipin0 avatar Feb 08 '21 14:02 0Vipin0

Same here.

subzero911 avatar Feb 08 '21 20:02 subzero911

same here

kapoorshivam avatar Feb 15 '21 11:02 kapoorshivam

Not saying this is the fix but I have been working on a Kotlin version of this library, which replaces the Java code inside the lib. I tried to improve some minor null handling and how the broadcast receiver works.

The branch is here and you can give it a whirl with setting your dependency like so:

sms_autofill:
    git:
      url: git://github.com/grahamsmith/sms_autofill.git
      ref: enhancement/kotlin

grahamsmith avatar Mar 04 '21 12:03 grahamsmith

@grahamsmith Thanks for the fix. I will definitely check it out.

0Vipin0 avatar Mar 10 '21 08:03 0Vipin0

I faced same issue autofill dose't work on android and iOS I don't know why and I I am using CodeAutoFill mixin but the function codeUpdated dons't Fire as expected , and appSignature on iOS comes with null value . I do appreciate any kind of support

yaseen-abugamess avatar Mar 16 '21 10:03 yaseen-abugamess

There is no app signature API on iOS so that's normal ^^, this package does nothing on iOS :)

jaumard avatar Mar 16 '21 10:03 jaumard

@jaumard Any solutions or advice on how to handle this issue?

0Vipin0 avatar Mar 22 '21 10:03 0Vipin0

@jaumard Any solutions or advice on how to handle this issue?

@grahamsmith give you a branch to test if it's better, have you any feedbacks ? on my side I have no idea what's going on and I can't reproduce. Also think that this plugin is based on google services, so any devices who doesn't have them installed (like Huawei phones) will not have OTP code filled and will have to do it manually

jaumard avatar Mar 22 '21 10:03 jaumard

Same here.

sometimes it works the most of the time not autocomplete

miguelflores1993 avatar Apr 20 '21 19:04 miguelflores1993

pls check some conditions to get autofill on android:

  1. one of your textbox must be autofocus set to true;
  2. make sure your sms include hash (in my case some time it null because i sent it to the server before it value available)

kttary avatar May 04 '21 23:05 kttary