-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to autofill code with sms code #25
Comments
IOS ? |
Oh sorry, yes :) |
I do not have such devices to test the problem, but no one bothers you to create a PR |
it is rather strange, just for this feature this flag was developed |
It is getting pasted in 1st block with 3 dot symbols. |
@gangadhartinmen |
Thanks. Will test it by today EOD and let you know. |
Hi @retyui , tested it now, and it works!
Am I missing something? thank you! |
Thank you so much. Its working. |
Today I will finish with fix IOS bags and updated documentation |
Thanks for your feedback! The component got better |
@retyui : Good job, Keep it up. I was looking for the autofill SMS, I think I can use this. |
Should this also work for Android? |
@mariomurrent-softwaresolutions For the Android platform, you can use an SMS listener, to insert code |
Hmm well this will probably not well with Expo, right? |
I didn't find API in the docs, Someone requested this feature (see https://forums.expo.io/t/built-in-android-ios-sms-listener/19361/2) |
How does this thing works with iOS, I am not getting "From Messages XXXX" above may iPhone numeric keyboard. do I need to send my message in some specific format for iOS also? |
Same applies for me |
I figured this out, you have to have OTP in message text for iOS numeric keyboard to pick it up. |
What does OTP mean? |
one time password |
So how does your SMS look like that it gets picked up? |
Hi, recently Android seems to support this too according to: https://stackoverflow.com/a/71386603/10268067 so you'd need to set autocomplete to sms-otp for android to work the same way as iOS does, have you done this interanlly? |
Hi there,
First of all - Love your work. This library saved me a lot of time :)
I currently have an issue with it - when I try to "paste" a code using the SMS code autocomplete (when you receive a code via SMS, and you can press on in like other auto complete suggestions), I get the wrong code.
Tried to debug it a bit, and it seems that handlerOnChangeText receives the code one char at a time, but as a whole. for example, if the code is 123456. then the text will be 1 for the first time, 12 for the second, 123 for the third etc.
As a workaround, I've changed
text = text[0];
totext = text[text.length - 1];
(and changed maxLength to code length) but this is probably not the best idea..BTW, tried canPasteCode but as you can understand it didn't solve the issue.
Any ideas?
Thanks!
The text was updated successfully, but these errors were encountered: