仅使用bundle标识符获取应用商店链接

3

"gmail-email-by-google" 不是捆绑标识符,而是应用程序的名称。 - Tamás Sengel
1个回答

1
如果您想通过Bundle ID搜索应用程序,您应该使用iTunes搜索API。请参考此问题。 如果您想从应用程序的名称创建App Store链接(如您的示例所述),则必须遵循此处找到的指南:

There are three types of App Store Short Links, [...] one for iOS apps [...]:

[...]

http://appstore.com/<appname> for example, http://appstore.com/keynote

[...]

To create an App Store Short Link, apply the following rules to your company or app name:

  • Remove all whitespace
  • Convert all characters to lower-case
  • Remove all copyright (©), trademark (™) and registered mark (®) symbols
  • Replace ampersands ("&") with "and"
  • Remove most punctuation (See Listing 2 for the set)
  • Replace accented and other "decorated" characters (ü, å, etc.) with their elemental character (u, a, etc.)
  • Leave all other characters as-is.

Listing 2

Punctuation characters that must be removed.

!¡"#$%'()*+,\-./:;<=>¿?@[\]^_`{|}~
从这个例子中,你的示例将是:

http://appstore.com/gmailemailbygoogle


1
http://appstore.com/gmailemailbygoogle与https://itunes.apple.com/app/gmail-email-by-google/id422689480的行为不同,因为它无法从浏览器访问。我猜我只能坚持使用`id422689480`... - Avery235

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接