How to Get SMS Codes on Your iPhone
In this article
Getting SMS codes on your iPhone is mostly automatic: as long as your iPhone has a working SIM or eSIM with an active carrier plan, incoming text messages — including one-time verification codes sent by banks, apps and websites — arrive in the Messages app like any other text. The usual reason people stop receiving them is not a missing setting but a blocked number, a full inbox, a carrier-side filter, or a phone number that no longer matches the one the sender is texting. This guide walks through confirming your setup, fixing the common blockers, and understanding what to do when a code never shows up.
What You'll Need
- An iPhone with a SIM or eSIM installed and an active carrier plan that supports SMS.
- A cellular signal or a Wi-Fi connection that supports Wi-Fi Calling if your carrier offers it.
- The phone number the sender is texting — it must match the number currently active on your iPhone.
- Access to the Messages app (the built-in Apple app, not a third-party texting app).
- Enough free storage on the iPhone so Messages can receive new content.
Step-by-Step
- Confirm your number is active. Open Settings and tap Phone to see the number your iPhone is using, or check Settings > Cellular for your line details. Menu labels can differ slightly by iOS version, device and region. If the number shown is not the one the sender is texting, the code is going to a different device or an old SIM.
- Check that SMS is not being diverted. If you recently moved from an Android phone, your old handset may still be receiving texts. Turn the old phone off or remove its SIM so the carrier routes messages to your iPhone.
- Open Messages and look for the code. Verification codes appear as normal texts, often from a short number. If you use two-factor authentication for your Apple Account, iOS can also fill codes automatically from the keyboard suggestion bar — but that only works for codes Apple recognises, not for every sender.
- Check for blocked numbers. In Messages, open the conversation list, tap Edit or the filter option, and look at Blocked Contacts under Settings > Messages. If the sender's short code or number is blocked, the message is silently discarded. Unblock it and ask the sender to resend.
- Look in the Junk filter. Settings > Messages includes options for filtering unknown senders. If message filtering is on, unknown senders may be sorted into a separate list. Open Messages, tap Filters at the top of the conversation list, and check the Unknown Senders tab.
- Make sure Messages is allowed to notify you. Go to Settings > Notifications > Messages and confirm notifications are on. A code can arrive without a banner if notifications are off, which makes it look like nothing came through.
- Check Do Not Disturb and Focus. Open Settings > Focus and confirm no Focus mode is silencing Messages. Codes still arrive but you may not see them until the Focus ends.
- Restart the iPhone. Hold the side button and a volume button until the power slider appears, then slide to power off and turn it back on. This clears most temporary messaging glitches.
- Update iOS. Go to Settings > General > Software Update and install any available update. Carrier settings updates also arrive this way and can fix SMS delivery problems.
- Test with a message you send yourself. Ask a friend to text you, or send a text from another device on your plan. If ordinary texts arrive but the code does not, the problem is with the sender, not your iPhone.
Common Mistakes
The most frequent mistake is entering the wrong phone number on the website or app requesting the code — a single wrong digit sends it elsewhere. The second is assuming the code will arrive by iMessage: verification codes are SMS, so they need a carrier signal, not just Wi-Fi, unless your carrier supports Wi-Fi Calling and it is enabled. Another common error is leaving an old phone switched on after switching to iPhone, which keeps texts going to the old device. People also block short codes after receiving spam and later forget, then wonder why a bank code never arrives. Finally, a full iPhone storage or a Messages inbox that has never been cleaned can interfere with receiving new messages; check Settings > General > iPhone Storage if you are near capacity.
Tips
Keep your number current with every service that texts you, especially banks and work accounts. If a code expires quickly, request a fresh one rather than reusing an old message. When a sender offers both SMS and an authenticator app, the app is usually faster and does not depend on carrier delivery. If you travel, confirm your carrier plan allows receiving texts abroad — some plans charge for incoming SMS. Turn on Wi-Fi Calling in Settings > Phone if your carrier supports it, since it can help texts arrive in weak-signal areas. Never share a verification code with anyone who contacts you asking for it; legitimate companies do not request codes by phone or message.
Troubleshooting
If the code still does not arrive, work from simplest to most disruptive. First, toggle Airplane Mode on for ten seconds and off again to force the phone to reconnect to the network. Second, check your carrier's service status page or call support to confirm SMS is working on your line. Third, try the SIM in another phone if you have one, which isolates whether the problem is the iPhone or the carrier. Fourth, sign out of Messages and back in only if you use iMessage and ordinary texts are also failing — this does not affect SMS but can resolve account-level issues. As a last resort, back up your iPhone and erase it, then restore from the backup; this deletes local data not included in the backup, so confirm the backup completed first. If only one sender's codes fail while everything else works, contact that company — their system may be rejecting your number.
Frequently Asked Questions
Why am I not receiving SMS codes on my iPhone?
Usually because the number is blocked, filtered as an unknown sender, or the sender has an outdated number for you. Check blocked contacts and the unknown senders filter first.
Do SMS codes arrive over Wi-Fi?
Only if your carrier supports Wi-Fi Calling and it is enabled. Otherwise SMS needs a cellular connection.
Can I get codes if my SIM is removed?
No. SMS is delivered to the number on the SIM or eSIM, so the line must be active on the iPhone.
Why do codes go to my old phone?
Your old device may still be signed in or holding the SIM. Turn it off or remove the SIM so the carrier routes messages to the iPhone.
Are verification codes stored anywhere?
They stay in the Messages conversation until you delete them. For Apple Account two-factor codes, iOS may offer autofill from the keyboard.
Is it safe to forward a code to someone?
No. Verification codes grant access to your accounts. Never share one, even with someone claiming to be from the company.