仅使用包标识符获取 App Store link

Get App Store link with bundle identifier only

在 Google Play 上,您可以 link 仅使用程序包 ID 获取您的应用程序。
例如。 https://play.google.com/store/apps/details?id=com.google.android.gm

有没有办法只使用包标识符对 App Store 执行相同的操作?
例如。 https://itunes.apple.com/app/gmail-email-by-google/id422689480 works but link is invalid without the id422689480: https://itunes.apple.com/app/gmail-email-by-google

如果您想通过 捆绑包 ID 搜索应用程序,您应该使用 iTunes 搜索 API。 Refer to this question.

如果您想从应用程序的 名称 创建 App Store link(如您的示例所述),您必须遵循指南 found here:

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