-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
iOS sms auto fill not working #137
Comments
Hey, that's how iOS auto fill works by default (by tapping sms code on top of the keyboard). |
On iOS 16 the sms autofill is not showing on top of keyboard. It used to work. But not anymore. The sms-code is received but pinput does not display it to choose. |
@janlektonen Have you changed anything on your side? Is sms content same? |
@Tkko No nothing changed, same sms content with 6 digits to input from sms. But it's strange it's stopped working. |
Yeah, iOS autofill works fine out of the box, standard |
I have tried again also with TextField on iOS 16.5.1. It can't get it to work and show sms code when clicking in the input field. |
Hey @janlektonen, could you send me the example of SMS you are receiving? |
Hey @Tkko, it is just a normal Firebase push notification. I don't have any data on it. But the keyboard input don't pick the FCM up. Here is the documentation on what I receive: https://firebase.google.com/docs/cloud-messaging/concept-options |
Yeah, it should be an SMS but as a workaround you can read the push notification content in your app and set the code programmatically
|
Thanks, I will do that then! |
@Tkko - sms autofill not working in ios with latest IOS its working in older version. any Idea what need to do this fix. |
@janlektonen There are message patterns for autofill to work on iOS, such as: Verification code: 123456 Please check this message pattern example and update us. @Tkko Add this info to your documentation, please. |
Using Pinput() I cant get it working. I have tried this:
But it is not working. Should it not support autofillHints on ios? |
@janlektonen You need to press on the top of your keyboard when the SMS is received if you use the SMS format for iOS, this is the Autofill in iOS. |
@DeveloperEC1 Yes I know that there is shown a line on top of keyboard with the code and you should click there to get it into pinput. BUT - that line is not shown anymore. It stopped working some version-updates ago. I pointed that out earlier this year. But the the OTP code is not shown anymore on top of keyboard for Firebase Push one time code notifications. It used to work earlier this year in your package.. but stopped. I think this is what people are pointing out here. |
Any update about line under keyboard? Because still doesn't work. Should I change any perm or stuf in iOS or Xcode or in project. @janlektonen @Tkko @Ibrokihimbek Android is working. |
@abdullahonus I have tried and just tested again on real ios 17 device. It's not working on ios... |
@janlektonen thank you for feed back. Can @Tkko do anything about that pleas? |
@janlektonen or any suggest from you I can try |
@abdullahonus as long as you followed the guidelines here I'm not sure we can do anything else? The documentation says it should be working - but I just can't get it working on a real ios device for months now... |
@janlektonen got it . So still not working we should wait for refactoring the code :/ Also thank you for ur information Mr. Jan |
Hey guys, I've just checked autofill on iOS 17.3.1 with Flutter 3.19.3 and when I send this SMS to my phone number the code is showing up on a keyboard. My SMS looks like this "Hey, your sms code ie 4432" If you are sending SMS in different language iOS might not be able to read the OTP so try to send it in English. Please tell me, If there is anything you are doing differently. |
@Tkko i can inform you that I use the Danish language template in Firebase for the sms message. Is there a way for the code to pick up the Danish language? |
I can't really find an exact SMS guidelines for iOS and it is a common issue but if you include the word "code" in your SMS it seems to be working fine. We had a same issue before so I recommend to read it as well Again, the issue isn't related to Flutter, that's how it works on iOS. |
Hello, I have a problem
that is, sms autofill is not working, there is no problem on android, on android, sms is coming and it asks for permission to enter the code in the sms, but on iOS, sms is coming, but it doesn't ask for permission to write, and it doesn't write the code automatically
The text was updated successfully, but these errors were encountered: