Is there a limitation on the length of a URL Scheme for an iOS App?
We have a number of apps and want to prefix them with the name of our 14 character company name to prevent ambiguity. I don't see any mention of a limitation in the documentation and I can enter an arbitrarily long string in Xcode.
I know that the shorter schemes are preferred but is there a limit on the length of the scheme?
The official documentation specifies a maximum length of 2048 characters for the <loc> element, which is used to submit URLs: URL of the page. This URL must begin with the protocol (e.g. “http”) and end with a trailing slash if required by the web server. This value must not exceed 2,048 characters.
Microsoft states that the maximum length of a URL in Internet Explorer is 2,083 characters, with no more than 2,048 characters in the path portion of the URL.
URL schema is used as an identifier in launching applications and performing a set of commands in iOS devices. The schema name of a URL is the first part of a URL. (e.g. schemaname:// ). For web pages, the schemas are usually http or https.
But once you move down to the number 10 spot, the average URL has 62 characters. So somewhere around 50 – 60 characters is a pretty good number to shoot for. If you go way beyond (say 80+ characters), this is likely to have a negative impact on your ranking.
I'm pretty sure that its the same as the normal URL scheme.
This question goes over a similar topic, you might find more information in here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With