Skip to content
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 autofill not working if manually entered a digit #198

Open
gaganyadav80 opened this issue Dec 13, 2024 · 1 comment
Open

iOS SMS autofill not working if manually entered a digit #198

gaganyadav80 opened this issue Dec 13, 2024 · 1 comment
Assignees

Comments

@gaganyadav80
Copy link

gaganyadav80 commented Dec 13, 2024

Describe the bug
During SMS autofill when the code is received on iOS and the hint is shown. If I type a digit from keyboard and then delete it. After that if I try to tap the autofill hint then it does not work.

However the same works on a normal TextField widget.

To Reproduce
Steps to reproduce the behaviour:

  1. Create a default Pinput widget
  2. Wait for SMS OTP to arrive and be shown on top of the keyboard.
  3. Now type any digit from the keyboard and then delete it using backspace.
  4. Try to tap the code on top of the keyboard. It does not autofill.

Screenshots

RPReplay_Final1732538577-VEED.mp4

Pinput version:
v5.0.0

Result of: flutter doctor --verbose

[✓] Flutter (Channel stable, 3.24.0, on macOS 15.2 24C101 darwin-arm64, locale en-IN) • Flutter version 3.24.0 on channel stable at /Users/gagan/fvm/versions/3.24.0 • Upstream repository https://github.com/flutter/flutter.git • Framework revision 80c2e84975 (5 months ago), 2024-07-30 23:06:49 +0700 • Engine revision b8800d88be • Dart version 3.5.0 • DevTools version 2.37.2

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
• Android SDK at /Users/gagan/Library/Android/sdk
• Platform android-35, build-tools 35.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16B40
• CocoaPods version 1.16.2

[✓] Android Studio (version 2024.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] IntelliJ IDEA Community Edition (version 2024.1.1)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.96.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.102.0

[✓] Connected device (3 available)
• Gagan’s iPhone (mobile) • 00008101-000370143A45001E • ios • iOS 17.7.1
21H216
• iPhone 16 Pro (mobile) • F0426AB3-55AB-4024-8FAD-8C810291C1A5 • ios •
com.apple.CoreSimulator.SimRuntime.iOS-18-1 (simulator)
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 15.2
24C101 darwin-arm64

[✓] Network resources
• All expected network resources are available.

• No issues found!

Smartphone (please complete the following information):

  • Device: iPhone 15
  • OS: iOS 18.2
@gaganyadav80
Copy link
Author

gaganyadav80 commented Dec 16, 2024

Update: If I enter the digit before the code is received. Then I receive the code but it is not shown on top of the keyboard which is expected, now if I clear the digit from pitput then also the code is not shown on top which is NOT expected. This works on normal text field.

Update 2: If I enter the digit and clear it before the code is received then the autofill works as expected.

The issues lies only when I enter and delete a digit AFTER receiving the code. But with the first update I provided I think the issues lies with deleting a character AFTER receiving the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants