Search code examples
iosmobile-safarihttp-redirecturl-scheme

When does an iTunes link redirect to the iTunes app?


When using the iTunes Link Maker one gets an http-Link, which is pretty nice, since it work also on non-iOS-devices.

But when exactly does the redirect to the app happen, when I use it on a web page?

  • Does Safari interrupt the request?
  • or does the iTunes website answer to the request with a redirect to a store:// URL or something?

Solution

  • Aparently it's the iTunes website which redirects based on user agent string – or a combination.

    When opening the http-URL with a browser with the iPhone's user agent string I get a 301 return from the iTunes webserver to the App's URL scheme itmss://