surfstudio / flutter-otp-autofill

Made by Surf 🏄
Apache License 2.0
81 stars 43 forks source link

autofill is not capturing OTP on android 12 devices.. Not giving any error. #39

Open Sayedmdkaif opened 1 year ago

Sayedmdkaif commented 1 year ago

autofill is not capturing OTP on android 12 devices..

Not giving any error.

Please update your code.

lijogeorgep commented 1 year ago

Same issue with me. please update the code. I think its related with some permission issue.

GalimzyanovDanil commented 1 year ago

Could not reproduce the bug with Retriever API or Consent API. Checked on the Android 12 and 13 emulator and on a real device with Android 12. Possible problem. Enable the autofill service by navigating to Settings > Google > Autofill > SMS verification codes > Autofill service. Note. To use Retriever API you need The App signature, package calculates the hash for you and prints it in the console. https://developers.google.com/identity/sms-retriever/verify#1_construct_a_verification_message

Sayedmdkaif commented 1 year ago

I have already calculated the hash key signature. But not working in android 12. When this issue will be fixed?

On Wed, 8 Feb, 2023, 11:28 am Danil Galimzyanov, @.***> wrote:

Could not reproduce the bug with Retriever API or Consent API. Checked on the Android 12 and 13 emulator and on a real device with Android 12. Possible problem. Enable the autofill service by navigating to Settings > Google > Autofill > SMS verification codes > Autofill service. Note. To use Retriever API you need The App signature, package calculates the hash for you and prints it in the console.

https://developers.google.com/identity/sms-retriever/verify#1_construct_a_verification_message

— Reply to this email directly, view it on GitHub https://github.com/surfstudio/flutter-otp-autofill/issues/39#issuecomment-1422056346, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGPNLJGWFIZQP2JZNF4LZODWWMYX7ANCNFSM6AAAAAAS6GEGNU . You are receiving this because you authored the thread.Message ID: @.***>

lijogeorgep commented 1 year ago

@GalimzyanovDanil This issue happens in the release build. It works fine when we test while debugging. For me it's not working in android 12 and 13. But works in android 10 devices. I am using Consent API.

tinted-knight commented 1 year ago

Hi @lijogeorgep ! We would like to deliver a fix, although I tested an example app on Android 13 in the release build and it works just fine with Consent API. We are also using it in several internal projects and have no issues. May it be some device- or firmware- specific behavior that does happen sometimes with Android devices? We probably should dig in a little bit to find out.

plasticfiresam commented 1 year ago

@lijogeorgep Could you provide more information about your case, including error and stacktrace, so we could continue investigation with this case?