I'm following the 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">
But I'm not sure what to put in the app-id because usually the App ID refers to the Team ID + bundle identifier (e.g. ABCDE12345.com.example.MyApp), but then it also says myAppStoreID which sounds different.
What goes in the app-id parameter?
In this case,
app-idrefers to the App Store ID, and not the App ID. This is clearly stated in the more general documentation about Smart App Banners.These identifiers are sometimes confusing because of conflicting names1, or wrong documentation2. Here's a comprehensive list that should hopefully clear up some confusion:
com.example.MyApp,com.example.MyApp.Clipbundle ID,Bundle ID (explicit)ABCDE12345,8XCUU22SN2Team ID,Team IDABCDE12345App ID Prefix (Team ID)$(AppIdentifierPrefix)2ABCDE12345.$(AppIdentifierPrefix).ABCDE12345.com.example.MyAppapp identifier,App ID1,explicit App ID,app identifier$(AppIdentifierPrefix)followed by the Bundle ID.ABCDE12345.*,ABCDE12345.com.example.*,*wildcard App ID*) character.1146562112app-id,myAppStoreID,app ID1,Apple IDFootnotes:
Notice how even though App ID and App Store ID are clearly different values, they have both been referred to as
App IDandapp ID, respectively.Note that this variable includes the trailing
.. You can see this by looking at a build’s environment variables, or at the variable’s usage in the Fruta app ($(AppIdentifierPrefix)com.example.apple-samplecode.fruta). There is only one location that shows it doesn’t contain a., but it contradicts itself in the same sentence. A nearly identical paragraph correctly omits the.: