开发者

Open itunes from a link

开发者 https://www.devze.com 2023-02-20 16:46 出处:网络
How can I write开发者_如何学编程 a link in html to open itunes in Mac? What actually I want to do is when someone clicks on a link in my website , itshould open itunes?Here is such a link:

How can I write开发者_如何学编程 a link in html to open itunes in Mac? What actually I want to do is when someone clicks on a link in my website , it should open itunes?


Here is such a link:

<a href="itms://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=307538288">Tap 'n' Pop Classic</a>

This will work only if the website visitor has iTunes installed on his machine.


Apple offers the iTunes Link Maker, which let's you generate such links.


Just use iTunes Link Maker and remove the country code (i.e. "us") out of the link and it would always work open iTunes always and not a browser on the way (if there is iTunes installed on the target system).

You can also remove the app_name you don't really need it (if your app name would be changed nothing happen, actually the name is ignored).

0

精彩评论

暂无评论...
验证码 换一张
取 消