简体   繁体   English

每个应用程序可能有多个应用程序剪辑?

[英]Possible to have more than one app clip per app?

Say I want to build an app clip for my curbside pickup feature.假设我想为我的路边取货功能构建一个 App Clip。

Is it possible to have another app clip for an unrelated in-store experience?是否可以为不相关的店内体验创建另一个 App Clip?

I can build both targets and run them just fine in Xcode, but when it comes to publishing, is this a possibility?我可以构建两个目标并在 Xcode 中正常运行它们,但是在发布方面,这有可能吗?

No. Only One App Clip per App.不可以。每个 App 只能有一个 App Clip。 You can use other experiences for that unrelated experience您可以将其他体验用于不相关的体验

You can only have one App Clip target when you upload your binary to App Store Connect, however you can configure multiple App Clip Experiences within the one App Clip.当您将二进制文件上传到 App Store Connect 时,您只能有一个 App Clip 目标,但是您可以在一个 App Clip 中配置多个 App Clip 体验。

From the Apple documentation:从苹果文档:

Some apps provide multiple experiences and App Clips can be configured to support each of them in a special way.一些应用程序提供多种体验,App Clips 可以配置为以特殊方式支持每一种体验。 For example, a restaurant app may support multiple restaurants.例如,一个餐厅应用程序可能支持多个餐厅。 App Clips make it possible to create a unique experience for each restaurant through a single App Clip. App Clips 可以通过单个 App Clip 为每家餐厅创造独特的体验。

In your example, you could instead create separate schemes for your curbside pickup feature and unrelated in-store experience, both targeting your single App Clip target.在你的例子中,你可以为你的路边取货功能和不相关的店内体验创建单独的方案,两者都针对你的单一 App Clip 目标。 Each scheme can specify its own Environment Variable for _XCAppClipURL so that you can test different invocations of your App Clip.每个方案都可以为_XCAppClipURL指定自己的环境变量,以便您可以测试 App Clip 的不同调用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM