gpt4 book ai didi

ios - 如果用户安装了您的主应用程序,是否会自动安装 iOS 共享扩展?

转载 作者:行者123 更新时间:2023-11-28 18:54:06 25 4
gpt4 key购买 nike

我想为我的主应用程序创建一个 Safari 共享扩展,当我打开 Safari 共享事件时我才意识到已经有很多共享扩展,而我自己没有从应用商店安装任何扩展。那么,共享扩展是否会自动与您的主应用程序一起安装?

预先感谢您的回答!

最佳答案

扩展,包括共享扩展,将在用户下载您的主应用程序时安装在设备上,该主应用程序的 bundle 中包含扩展。换句话说,如果用户下载您的应用程序,他们也会获得您的扩展程序。

注意:默认情况下不启用扩展程序,因此用户必须在安装后手动启用它们。

编辑

有关扩展的信息,包括它们相对于您的应用程序二进制文件的位置以及它们如何交付给用户设备,是 here .此摘录来自文档的该页面:

An app extension is different from an app. Although you must use an app to contain and deliver your extensions, each extension is a separate binary that runs independent of the app used to deliver it.

You create an app extension by adding a new target to an app. As with any target, an extension target specifies settings and files that combine to build a product within your app project. You can add multiple extension targets to a single app (an app that contains one or more extensions is called a containing app).

The best way to start developing an app extension is to use one of the templates that Xcode provides for each extension point on both platforms. Each template includes extension point–specific implementation files and settings, and produces a separate binary that gets added to your containing app’s bundle.

To distribute app extensions to users, you submit a containing app to the App Store. When a user installs your containing app, the extensions it contains are also installed.

After installing an app extension, a user must take action to enable it. Often, users can enable an extension within the context of their current task. If your extension is a Today widget, for example, users can edit the Today view in Notification Center to enable your extension. In other cases, users can use Settings (in iOS) or System Preferences (in OS X) to enable and manage the extensions they install.

关于ios - 如果用户安装了您的主应用程序,是否会自动安装 iOS 共享扩展?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36094089/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com