如果用户安装了您的主应用程序,是否会自动安装 iOS 共享扩展?
Is that an iOS share extension will be installed automatically if user installed your main app?
我想为我的主应用程序创建一个 Safari 共享扩展,当我打开 Safari 共享时我才发现已经有很多共享扩展 activity,而我没有安装任何扩展来自应用商店我自己。
那么,共享扩展是否会自动与您的主应用程序一起安装?
提前感谢您的回答!
扩展,包括共享扩展,将在用户下载您的主应用程序时安装在设备上,其捆绑包中包含扩展。换句话说,如果用户下载您的应用程序,他们也会获得您的扩展程序。
注意:默认情况下不启用扩展程序,因此用户必须在安装后手动启用它们。
编辑
有关扩展的信息,包括它们相对于您的应用程序二进制文件的位置以及它们如何传送到用户设备,是 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.
我想为我的主应用程序创建一个 Safari 共享扩展,当我打开 Safari 共享时我才发现已经有很多共享扩展 activity,而我没有安装任何扩展来自应用商店我自己。 那么,共享扩展是否会自动与您的主应用程序一起安装?
提前感谢您的回答!
扩展,包括共享扩展,将在用户下载您的主应用程序时安装在设备上,其捆绑包中包含扩展。换句话说,如果用户下载您的应用程序,他们也会获得您的扩展程序。
注意:默认情况下不启用扩展程序,因此用户必须在安装后手动启用它们。
编辑
有关扩展的信息,包括它们相对于您的应用程序二进制文件的位置以及它们如何传送到用户设备,是 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.