【问题标题】:Which "app-id" do I use for an App Clip's apple-itunes-app meta tag?App Clip 的 apple-itunes-app 元标签应使用哪个“app-id”?
【发布时间】:2022-12-29 12:11:37
【问题描述】:

我正在关注instructions to associate an App Clip with a website

<meta name="apple-itunes-app" content="app-id=myAppStoreID, app-clip-bundle-id=appClipBundleID, app-clip-display=card">

但我不确定在 app-id 中放什么,因为通常应用程序 ID 指的是团队 ID + 包标识符(例如 ABCDE12345.com.example.MyApp),但它也说 myAppStoreID 听起来不同。

app-id 参数中的内容是什么?

【问题讨论】:

    标签: ios app-store app-id apple-appclips


    【解决方案1】:

    在这种情况下,app-id 指的是应用商店编号,而不是应用编号.这在the more general documentation about Smart App Banners 中有明确说明。

    这些标识符有时会因为名称冲突而令人困惑1个, 或错误的文档2个.这里有一份综合清单,希望能消除一些困惑:

    Example values Terms used by Apple Description
    Bundle ID com.example.MyApp, com.example.MyApp.Clip bundle ID, Bundle ID (explicit) User defined, typically in reverse domain name notation.
    Team ID ABCDE12345, 8XCUU22SN2 Team ID, Team ID Assigned by Apple.
    App ID Prefix ABCDE12345 App ID Prefix (Team ID) Usually same as Team ID.
    $(AppIdentifierPrefix)2 ABCDE12345. $(AppIdentifierPrefix) The App ID Prefix followed by a .
    App ID ABCDE12345.com.example.MyApp app identifier, App ID1, explicit App ID, app identifier The $(AppIdentifierPrefix) followed by the Bundle ID.
    wildcard App ID ABCDE12345.*, ABCDE12345.com.example.*, * wildcard App ID Similar to the App ID, but with a wildcard (*) character.
    App Store ID 1146562112 app-id, myAppStoreID, app ID1, Apple ID Assigned by Apple. Used in App Store URLs.

    脚注:

    1. 注意即使应用编号应用商店编号是明显不同的值,它们分别被称为App IDapp ID

    2. 请注意,此变量包括结尾的 .。您可以通过 looking at a build’s environment variablesFruta app ($(AppIdentifierPrefix)com.example.apple-samplecode.fruta) 中的变量用法来查看。只有one location表明它不包含.,但它在同一句话中自相矛盾。 nearly identical paragraph 正确地省略了 .

      例如,如果您的完整应用程序的应用程序标识符为 $(AppIdentifierPrefix)com.example.MyApp,则您的 App Clip 的应用程序标识符将为 $(AppIdentifierPrefix)com.example.MyApp.Clip。

    【讨论】:

      猜你喜欢
      • 2017-06-17
      • 2018-04-20
      • 2012-07-12
      • 2011-09-04
      • 2021-10-19
      • 2013-05-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多