Users on iOS devices experience login errors when entering their Salesforce custom domain in the Salesforce Mobile App. The error typically reads: "Only alphabets, hyphens, and numbers are allowed." The issue occurs even when the user believes they have typed the domain correctly.
This issue affects Salesforce Mobile App users on iPhone and iPad running iOS with Smart Punctuation enabled — which is the default setting on Apple devices.
Apple's iOS Smart Punctuation feature automatically converts two consecutive hyphens (--) into an em dash (—) as the user types. Some Salesforce custom domain names contain double-hyphens (for example: mycompany--sandbox.my.salesforce.com). When a user types this domain on iOS, Smart Punctuation silently replaces -- with —.
The Salesforce Mobile App only accepts standard hyphens in domain names. The em dash is not a valid character, so the app returns an error and the login fails.
Disabling iOS Smart Punctuation prevents the automatic character substitution and allows the custom domain to be entered correctly.
📌 Note: Disabling Smart Punctuation only affects punctuation auto-correction. It does not change any other keyboard behavior and does not affect the Salesforce app itself.
As an alternative to disabling Smart Punctuation, users can copy the full custom domain URL from an email or browser on their device and paste it into the domain field in the Salesforce Mobile App. Pasting bypasses the auto-correction behavior.
⚠️ Note for Admins: If multiple users in your organization use iOS devices to log in with a custom domain that contains a double-hyphen, consider communicating this workaround proactively. The issue is most common in sandbox environments (which typically use --sandbox in the domain).
Why does the Salesforce Mobile App show "only alphabets, hyphens, numbers allowed" when the domain looks correct? iOS Smart Punctuation may be silently replacing double-hyphens in the domain with an em dash character. Disable Smart Punctuation in Settings > General > Keyboard and try again.
Does this issue affect Android devices? This specific issue is iOS-only. Android does not have an equivalent Smart Punctuation feature that would substitute hyphens in this way. Android users experiencing domain login errors should follow the standard troubleshooting steps in the Troubleshoot Login Problems article.
Will re-enabling Smart Punctuation cause the problem to return? Yes. If Smart Punctuation is re-enabled, it will again substitute double-hyphens when typing. Either keep Smart Punctuation disabled or use the paste method for domain entry.
005390717

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.