# Apple 隐私清单

> Include a privacy manifest in your iOS app to declare the personal data that Unity Authentication collects to conform with Apple's privacy policy.

要在 App Store 中发布适用于 iOS、iPadOS、tvOS 和 visionOS 平台的应用程序，您必须根据 [Apple 隐私政策](https://www.apple.com/legal/privacy/en-ww/)在应用程序中包含[隐私清单文件](https://developer.apple.com/documentation/bundleresources/privacy_manifest_files)。

> **Note:**
>
> **注意**：如需了解如何创建要包含在应用程序中的隐私清单文件，请参阅 [Apple 隐私清单政策要求](https://docs.unity3d.com/Manual/apple-privacy-manifest-policy.html)。

[PrivacyInfo.xcprivacy](#privacyinfoxcprivacy) 清单文件概述了所需的信息，确保透明度符合用户隐私惯例。此文件列出了由 Unity 应用程序、第三方 SDK、包和插件收集的[数据类型](https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_data_use_in_privacy_manifests)，以及使用某些[需要声明原因的 API](https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api)（Apple 文档）类别的原因。Apple 还要求将某些域声明为[追踪](https://developer.apple.com/app-store/user-privacy-and-data-use/)（Apple 文档）；除非用户同意，否则这些域可能会被屏蔽。

> **Warning:**
>
> **重要**：如果您的隐私清单未声明您或第三方 SDK 使用了需要声明原因的 API，App Store 可能会拒绝您的应用程序。在 Apple 文档中阅读有关[需要声明原因的 API](https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api) 的更多信息。

注意：

* Authentication 依赖于 Services Core。请参阅其[隐私清单](/services/apple-privacy-manifest.md)以了解适用的数据处理做法。
* 仅当使用 Unity Player Accounts 时才会收集电子邮件地址。
* 其他联系信息是指：
  * Open ID Connect 子声明。
    * 如果使用 Open ID Connect 身份提供商，Unity Authentication 可能会收集此信息。
  * 游戏中的显示名称。
    * 如果使用 Player Names（玩家名称）功能，Unity Authentication 可能会收集此信息。
* 如果使用 Unity Player Accounts，可能会收集客户支持信息。
* 如果使用 Unity Player Accounts，可能会收集其他使用情况数据。

从 3.3.1 版开始提供 Authentication 的隐私清单。

## PrivacyInfo.xcprivacy##privacyinfoxcprivacy

以下代码示例显示了 Authentication 的 `PrivacyInfo.xcprivacy` 清单文件的内容。此文件也可在 SDK 中找到。

要确定此 SDK 收集的数据及其收集目的，请参考以下键：

* `NSPrivacyCollectedDataType`
* `NSPrivacyCollectedDataTypePurposes`

```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>NSPrivacyTracking</key>
	<false/>
	<key>NSPrivacyTrackingDomains</key>
	<array/>
	<key>NSPrivacyCollectedDataTypes</key>
	<array>
		<dict>
			<key>NSPrivacyCollectedDataType</key>
			<string>NSPrivacyCollectedDataTypeEmailAddress</string>
			<key>NSPrivacyCollectedDataTypeLinked</key>
			<true/>
			<key>NSPrivacyCollectedDataTypeTracking</key>
			<false/>
			<key>NSPrivacyCollectedDataTypePurposes</key>
			<array>
			    <string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
			</array>
		</dict>
		<dict>
			<key>NSPrivacyCollectedDataType</key>
			<string>NSPrivacyCollectedDataTypeOtherUserContactInfo</string>
			<key>NSPrivacyCollectedDataTypeLinked</key>
			<true/>
			<key>NSPrivacyCollectedDataTypeTracking</key>
			<false/>
			<key>NSPrivacyCollectedDataTypePurposes</key>
			<array>
			    <string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
			</array>
		</dict>
		<dict>
			<key>NSPrivacyCollectedDataType</key>
			<string>NSPrivacyCollectedDataTypeCoarseLocation</string>
			<key>NSPrivacyCollectedDataTypeLinked</key>
			<true/>
			<key>NSPrivacyCollectedDataTypeTracking</key>
			<false/>
			<key>NSPrivacyCollectedDataTypePurposes</key>
			<array>
			    <string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
			</array>
		</dict>
		<dict>
			<key>NSPrivacyCollectedDataType</key>
			<string>NSPrivacyCollectedDataTypeCustomerSupport</string>
			<key>NSPrivacyCollectedDataTypeLinked</key>
			<true/>
			<key>NSPrivacyCollectedDataTypeTracking</key>
			<false/>
			<key>NSPrivacyCollectedDataTypePurposes</key>
			<array>
			    <string>NSPrivacyCollectedDataTypePurposeOther</string>
			</array>
		</dict>
		<dict>
			<key>NSPrivacyCollectedDataType</key>
			<string>NSPrivacyCollectedDataTypeUserID</string>
			<key>NSPrivacyCollectedDataTypeLinked</key>
			<true/>
			<key>NSPrivacyCollectedDataTypeTracking</key>
			<false/>
			<key>NSPrivacyCollectedDataTypePurposes</key>
			<array>
			    <string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
			</array>
		</dict>
		<dict>
			<key>NSPrivacyCollectedDataType</key>
			<string>NSPrivacyCollectedDataTypeOtherUsageData</string>
			<key>NSPrivacyCollectedDataTypeLinked</key>
			<true/>
			<key>NSPrivacyCollectedDataTypeTracking</key>
			<false/>
			<key>NSPrivacyCollectedDataTypePurposes</key>
			<array>
				<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
				<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
			</array>
		</dict>
		<dict>
			<key>NSPrivacyCollectedDataType</key>
			<string>NSPrivacyCollectedDataTypeCrashData</string>
			<key>NSPrivacyCollectedDataTypeLinked</key>
			<false/>
			<key>NSPrivacyCollectedDataTypeTracking</key>
			<false/>
			<key>NSPrivacyCollectedDataTypePurposes</key>
			<array>
			    <string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
			</array>
		</dict>
	</array>
	<key>NSPrivacyAccessedAPITypes</key>
	<array/>
</dict>
</plist>
```
