Im trying to Build OTP input UI
Was thinking to fetch OTP automatically, looked into it and saw that compose doesnt have good support for Autofill
Any workarounds?
P.S: im aware of the Google Support tickets
Suhaib Kazi
04/15/2024, 2:44 PM
Dont bother to reply, i have an implementation in place, just need to test
b
Bășcărău Claudiu
04/15/2024, 7:07 PM
Do you have a repo or sample?
s
Suhaib Kazi
04/16/2024, 5:25 AM
https://bryanherbst.com/2021/04/13/compose-autofill/
This helped.
Essentially used the modifier customized to my requirements instead of the wrapper composable.
Still a lot of the functionalities support by views/xml are missing. Probably will be added in the future but nothing as of yet.
My requirements weren't much thats why i went with the modifier
Suhaib Kazi
04/16/2024, 5:26 AM
Also big thanks to @Bryan Herbst
b
Bășcărău Claudiu
04/16/2024, 6:27 AM
Awesome, thanks ! 🙌
c
Colton Idle
04/17/2024, 2:43 AM
that autofill stuff still doesn't work well for 1password unfortunately. but autofill is on the "in focus" section of the public compose roadmap. so hopefully soon.