Receiving a 6-digit bank or login text message on your iPhone and tapping the code box expecting “From Messages: 482910” to pop cleanly right above your keyboard – only to stare at blank predictive suggestions and have to switch back into Messages to memorise the digits – happens whenever iOS AutoFill toggles get switched off, the keyboard Predictive bar hides, or a message arrives formatted in a way Apple’s parser misses.
Fix 1: Switch “AutoFill Passwords and Passkeys” Back On in Settings
Even though SMS codes arrive via text message rather than iCloud Keychain, Apple ties the one-time-code keyboard suggestion feature directly to your master iOS AutoFill toggle.
- Open iPhone Settings.
- Go to General > AutoFill & Passwords (on iOS 17 and earlier: Settings > Passwords > Password Options).
- Make sure AutoFill Passwords and Passkeys at the very top is toggled On (green).
- Directly underneath, confirm Passwords (Apple’s built-in Passwords app / iCloud Keychain) is toggled On under Use Verification Codes From.
- If you also use Delete After Use under Verification Codes, verify it behaves as desired – turning AutoFill off and back on once often wakes stalled keyboard hooks right away.
Fix 2: Verify “Predictive Text” Is Enabled on Your iPhone Keyboard
Because SMS verification codes appear in the exact horizontal strip normally occupied by QuickType predictive word suggestions, hiding the QuickType bar hides your 2FA code button as well.
- Open iPhone Settings > General > Keyboard.
- Scroll down and verify Predictive Text is switched On.
- Also check whether you are using a third-party keyboard (such as Gboard or SwiftKey) inside the app! Certain banking apps block third-party keyboards on security fields or hide system SMS suggestions; tap the small Globe icon in the bottom-left corner of your keyboard to switch back to Apple’s default English keyboard so the Messages code chip appears cleanly.
Fix 3: Check Messages “Filter Unknown Senders” & Third-Party SMS Filters
If you installed a spam-blocking app (such as Hiya, Truecaller, or carrier spam shields) or turned on strict SMS filtering, text messages routed directly into spam buckets bypass live keyboard code detection.
- Open Settings > Apps > Messages > Unknown & Spam and confirm a spam filter extension is not quarantining automated shortcodes before iOS parses them.
- Remember too that Safari/Chrome website login boxes sometimes fail to tag an input box as
one-time-code; tapping directly inside the 6-digit box once (instead of leaving focus outside it) or checking that the SMS actually contains clear keywords like code, OTP, or verification ensures iOS recognises it properly.
If the SMS code itself is arriving late or never turns up on your phone at all, follow our troubleshooting steps on fixing iPhone not receiving 2FA verification SMS codes.