How can I detect whether a user's browser supports iTunes Music Store (itms://
) links?
If the browser supports it, I'd like to offer an itms://
link, so that it will open directly in iTunes. But for browsers that don't, I'd link to the object using https://itunes.apple.com
.
I thought about offering itms://
only to Safari, but then realized that (at least on a Mac) Chrome also seems to support itms://
. Also, detecting Safari seems a bit fragile. If possible I'd prefer to detect feature support rather than checking for a specific browser.