# 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.

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 またはサードパーティ製の SDK が、理由が求められる API を使用していることを宣言しない場合には、アプリストアがそのアプリケーションを拒否する可能性があります。詳細については、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) を参照してください。
* E メールアドレスは、Unity Player Accounts が使用されている場合にのみ収集されます。
* その他の連絡先情報は、以下を表します。
  * Open ID Connect sub クレーム。
    * これは、Open ID Connect ID プロバイダーが使用されている場合に、Unity Authentication によって収集されることがあります。
  * ゲーム内ディスプレイ名。
    * これは、Player Names 機能が使用されている場合に、Unity Authentication によって収集されることがあります。
* カスタマーサポートは、Unity Player Accounts が使用されている場合にのみ、収集されることがあります。
* Unity Player Accounts が使用されている場合は、その他の使用状況データが収集されることがあります。

Authentication のプライバシーマニフェストは、バージョン 3.3.1 から使用できます。

## 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>
```
