adar2378 / pin_code_fields

A flutter package which will help you to generate pin code fields with beautiful design and animations. Can be useful for OTP or pin code inputs 🤓🤓
https://pub.dev/packages/pin_code_fields
MIT License
697 stars 339 forks source link

Autofill for android #129

Closed Puspharaj closed 3 years ago

Puspharaj commented 3 years ago

Nice work by the team!

I'm not sure if the package supports autofill, it seems not included in this current version. Is there any way to get it work?

Moreover android supports SMS verify, but that comes with bit restriction like, <#> Your otp code is 987879, If the sender doesn't contain # in front of the message, it won't get detected.

I'm using Firebase OTP login that doesn't include # In front of every message, so no way of autofill that sms to my field.

Is there any solution to this? Thanks.

adar2378 commented 3 years ago

enablePinAutofill use this attribute, thanks

Puspharaj commented 3 years ago

Indeed, it was set default to true, but never works!!

CherukuriSiva commented 3 years ago

@Puspharaj Can't we use https://pub.dev/packages/sms_autofill/example library here... to autofill the OTP?

Puspharaj commented 3 years ago

Nope, I tried it, won't work either for my case, evry otp has to start with #. In my case firbase won't work like that.

adar2378 commented 3 years ago

@Puspharaj Then maybe you need to create your own custom solution for this, I'm afraid.

omidraha commented 3 years ago

Does this enablePinAutofill attribute just work for IOS?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

harshmsomani commented 1 year ago

Any update?