If iPhone OTP autofill is not working, the fix is usually a combination of checking that the code arrives as a single SMS message, enabling the AutoFill Passwords setting, and restarting the Messages app or your iPhone. This guide walks through the most common causes and the exact steps to resolve them, from simple settings toggles to more advanced troubleshooting.
Why iPhone OTP Autofill Stops Working
iPhone’s one-time passcode (OTP) autofill relies on a system that reads verification codes from the Messages app and suggests them above the keyboard. This feature, introduced in iOS 12, is designed to work automatically when the code is sent via SMS to the same phone number that is signed into your Apple ID. The system is sensitive to how the code is formatted in the message. If the sender includes extra text, line breaks, or sends the code as part of a longer message, iOS may fail to recognize it as a verification code.
Another common reason is that the feature is disabled in Settings, or that the app you are trying to log into does not have the “Passwords” keychain enabled. The feature also depends on iCloud Keychain being turned on, because that is where the system stores and retrieves the code suggestions. If you recently restored your iPhone, changed your Apple ID password, or turned off iCloud Keychain, the autofill service may stop functioning.
Check the Basic Settings First
Before diving into more complex fixes, verify that the core settings are correct. The most overlooked toggle is the one that allows the iPhone to read verification codes from Messages.
- Open Settings and tap Passwords (or Passwords & Accounts on older iOS versions).
- Ensure AutoFill Passwords is toggled on. If it is off, turn it on.
- Tap Password Options and confirm that iCloud Keychain is enabled. If it is off, the iPhone cannot suggest codes from saved logins.
- Go back to Settings > Messages and check that iMessage is on. The OTP autofill system reads SMS messages, but it also uses iMessage for delivery in some cases.
If all these are already correct, move on to the next step. A simple toggle-off and toggle-on of the AutoFill Passwords switch can sometimes refresh the system and restore functionality.
Restart the Right Apps and the iPhone
Often the issue is a temporary glitch in the Messages app or the app you are trying to log into. Force-quitting both apps can clear the stuck state.
- From the Home Screen, swipe up from the bottom and pause to open the App Switcher.
- Swipe up on the Messages app and the app where you need the code (e.g., your banking app or email app).
- Wait a few seconds, then reopen the app that needs the code and request a new OTP.
If that does not work, restart the iPhone itself. Hold the side button and either volume button until the power off slider appears, then drag it. After the phone shuts down, hold the side button again until the Apple logo appears. A restart clears background processes that may be interfering with the autofill detection.
Check How the Code Is Delivered
The format of the SMS message matters more than most people realize. iOS looks for a short numeric code, usually 4-6 digits, that appears as a standalone word or phrase. If the sender includes punctuation, brackets, or extra spaces around the code, the system might not detect it.
Common problem formats include:
- “Your code is 123456. Do not share it.” – usually works.
- “123456 is your code. It expires in 10 minutes.” – usually works.
- “Code: 123 456” – may fail because of the space.
- “Your verification code is 123456. Call us if you didn’t request this.” – may fail if the message is too long.
If you have the option to receive the code via a phone call or an authenticator app instead of SMS, try that. Some services send codes through email, which iOS does not autofill for OTPs by default. If the code is in an email, you will need to copy it manually.
Reset Network and Keyboard Settings
Sometimes the issue is not with the Messages app but with the keyboard or the network connection that delivers the SMS. If you are on Wi-Fi and not receiving SMS messages at all, the problem is with cellular connectivity, not autofill.
To reset network settings (this will forget Wi-Fi passwords and Bluetooth pairings):
- Go to Settings > General > Transfer or Reset iPhone.
- Tap Reset and choose Reset Network Settings.
- Enter your passcode and confirm.
For keyboard-related issues, go to Settings > General > Keyboard and toggle off Auto-Capitalization and Smart Punctuation. These features can sometimes interfere with the text replacement that autofill uses. You can also try deleting and re-adding the keyboard if you have multiple third-party keyboards installed.
Update iOS and Check for App-Specific Issues
Apple frequently fixes bugs related to autofill in iOS updates. Go to Settings > General > Software Update and install any pending updates. If you are already on the latest version, check if the problem happens only in one specific app. Some apps disable the autofill suggestion bar for security reasons, especially banking and financial apps. In that case, the app will show its own code entry field, and you will need to type the code manually or use the app’s built-in paste function.
If the issue is app-specific, try the following:
- Update the app from the App Store.
- Log out and log back in.
- Delete and reinstall the app (only if you know your login credentials).
Frequently Asked Questions
Why does my iPhone show the OTP suggestion but it doesn’t fill in?
This usually happens when the app’s text field is not recognized as a secure text field by iOS. Try tapping the field again, or manually tap the suggestion bubble above the keyboard. If that fails, the app may have a custom keyboard or text field that blocks autofill. Copy the code manually from the Messages app and paste it.
Does OTP autofill work with third-party password managers?
Yes, but only if the password manager has its own autofill extension enabled. Go to Settings > Passwords > AutoFill Passwords and select your third-party manager instead of iCloud Keychain. The OTP autofill from SMS messages is handled by iOS itself, not the password manager, so that part works regardless.
Why does OTP autofill work on my iPad but not my iPhone?
If the iPad is receiving the SMS via iMessage (because it is linked to the same Apple ID), it may autofill while the iPhone does not. Check that the iPhone has cellular service and that SMS delivery is working. Also ensure that both devices are signed into the same Apple ID and have iCloud Keychain enabled.
Can I disable OTP autofill if I don’t want it?
Yes. Go to Settings > Passwords > AutoFill Passwords and toggle it off. This will stop all password and OTP autofill suggestions. You can also delete specific saved codes from the Messages app, but the system will still suggest new ones unless the toggle is off.
What if the code is sent via a messaging app like WhatsApp or Telegram?
iOS does not autofill OTPs from third-party messaging apps. The feature only works with the built-in Messages app (SMS/iMessage). If you receive a code in WhatsApp, you will need to copy it manually or switch to SMS delivery in the service’s settings if available.
Will resetting all settings fix OTP autofill?
Resetting all settings (not erasing content) can fix persistent issues. Go to Settings > General > Transfer or Reset iPhone > Reset > Reset All Settings. This will not delete your data, but it will reset Wi-Fi passwords, wallpapers, and some privacy settings. You will need to re-enable AutoFill Passwords after the reset.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Photonic Inference vs GPU Inference: Key Differences16,384.00 µs
- Android Low Storage Survival Tips That Actually Work
- How to Password Protect PDFs on iPhone
- iPhone Force Restart Not Working? Fixes
- Add or Remove Keyboard Layout in Windows 10
- Razer Barracuda V2 Pro Dongle: Store & Find