> ## Documentation Index
> Fetch the complete documentation index at: https://docs.manalens.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# App store privacy

> What to declare for the Manalens game SDKs in the Apple privacy manifest, the App Store privacy details, and the Google Play Data safety form.

Before you ship an iOS or Android build, Apple and Google ask what data your game collects. This page lists what the [Unity](https://docs.manalens.dev/sdks/unity.md), [Godot](https://docs.manalens.dev/sdks/godot.md), and [Unreal](https://docs.manalens.dev/sdks/unreal.md) SDKs collect, and the answers to give for that data.

> [!WARNING]
>
> You are responsible for your store answers. This page describes the SDKs with their default settings. It is not legal advice. Your own events, properties, and traits can add data types: see [what you add](#what-you-add).

## What the SDKs collect on a phone

| Data | Where it comes from | Apple data type | Google Play data type |
| - | - | - | - |
| Anonymous ID | A random UUID, one per install. The SDK stores it in a local file in the app's own storage. | Device ID | Device or other IDs |
| User ID | Only after you call `Identify()` / `identify()` | User ID | Personal info: User IDs |
| Game events | `game_open`, sessions, and your `Track()` events | Product interaction | App activity: App interactions |
| Crashes | `game_crash` after a crash | Crash data | App info and performance: Crash logs |
| Hangs | `error` events with `error_type` `game_hang` and `hang_duration_s` | Performance data | App info and performance: Diagnostics |
| Errors | `error` events, from your calls and from the engine log | Other diagnostic data | App info and performance: Diagnostics |
| Device details | Screen size, DPI and refresh rate, the OS version, and the CPU and GPU models. Also memory and video memory, the graphics API, the engine version, and on phones the device model. No serial numbers and no hardware IDs. | Other diagnostic data | App info and performance: Diagnostics |
| Install referrer (Android) | The Google Play install referrer of the install (for example `utm_source=google-play&utm_medium=organic`), sent once in an `install_referrer` event. No advertising ID. | Not on iOS | App activity: Other actions |
| Country | Manalens looks up the country from the request IP, then discards the IP | Coarse location | Location: Approximate location |

The SDKs also send the platform, the storefront, the app version and build, the engine, and the locale. See [what we collect](https://docs.manalens.dev/data/what-we-collect.md) for every field.

The SDKs do **not**:

* set cookies. A native build stores its state only in local files in the app's own storage (see [game storage](https://docs.manalens.dev/data/what-we-collect.md#game-storage)).

* read the advertising ID (IDFA or the Android advertising ID), the IDFV, or any hardware ID

* ask for a location permission or read GPS data. Manalens does not store the IP address.

* fingerprint the device. The device details describe the hardware for reports and crash triage, and they are never joined into an ID.

* use the data for tracking or for ads, or link it with data from other companies

* send data to third parties. Manalens processes the data for you, under our [Data Processing Agreement](https://manalens.dev/dpa).

## Apple App Store

Apple has two parts: the **privacy manifest** (`PrivacyInfo.xcprivacy`) in the app bundle, and the **App Privacy** answers in App Store Connect. Give the same answers in both.

### Tracking

* **Tracking:** No (`NSPrivacyTracking` is `false`).
* **Tracking domains:** none.
* **App Tracking Transparency prompt:** the SDKs do not need one.

### Collected data types

For each data type in the table below, declare:

* **Used for tracking:** No.
* **Purpose:** Analytics.
* **Linked to the user's identity:** No. If you call `Identify()` with an ID that identifies the player, answer **Yes** for all of these types. Examples are an account ID or a Game Center ID.

| App Store Connect | Privacy manifest key |
| - | - |
| Identifiers: Device ID | `NSPrivacyCollectedDataTypeDeviceID` |
| Identifiers: User ID (only with `Identify()`) | `NSPrivacyCollectedDataTypeUserID` |
| Usage data: Product interaction | `NSPrivacyCollectedDataTypeProductInteraction` |
| Diagnostics: Crash data | `NSPrivacyCollectedDataTypeCrashData` |
| Diagnostics: Performance data | `NSPrivacyCollectedDataTypePerformanceData` |
| Diagnostics: Other diagnostic data | `NSPrivacyCollectedDataTypeOtherDiagnosticData` |
| Location: Coarse location | `NSPrivacyCollectedDataTypeCoarseLocation` |

The anonymous ID is per install, not per device. We list it as Device ID because Apple has no type for an install ID.

### Required reason APIs

The SDKs read the modification time of crash log files. That is a file timestamp API. Declare it with reason **C617.1** (files inside the app container).

| API category | Reason | Why |
| - | - | - |
| `NSPrivacyAccessedAPICategoryFileTimestamp` | `C617.1` | To find a new crash log and not send the same crash twice |

The SDKs read crash logs only on Windows, macOS, and Linux. But the code is in the iOS build too, so declare the reason.

The SDKs also use timers and save files. These go through engine APIs. The engine declares their reasons in its own manifest:

* **Unity:** Unity 2021.3.35f1, 2022.3.18f1, 2023.2.7f1, and later versions add the engine's reasons (`PlayerPrefs`, file timestamps, system boot time, disk space). On an older 2021.3 version, declare them yourself. See [Unity's privacy manifest page](https://docs.unity3d.com/Manual/apple-privacy-manifest-policy.html).
* **Godot and Unreal:** check the reasons that your engine version declares, and keep them.

### Unity

The Unity package does not ship a privacy manifest yet. Add the entries to your app's manifest. If you do not have one, save this file as `Assets/Plugins/PrivacyInfo.xcprivacy`. If you have one, merge the entries into it.

```xml PrivacyInfo.xcprivacy theme={null}
<?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>NSPrivacyAccessedAPITypes</key>
  <array>
    <dict>
      <key>NSPrivacyAccessedAPIType</key>
      <string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
      <key>NSPrivacyAccessedAPITypeReasons</key>
      <array>
        <string>C617.1</string>
      </array>
    </dict>
  </array>
  <key>NSPrivacyCollectedDataTypes</key>
  <array>
    <dict>
      <key>NSPrivacyCollectedDataType</key>
      <string>NSPrivacyCollectedDataTypeDeviceID</string>
      <key>NSPrivacyCollectedDataTypeLinked</key>
      <false/>
      <key>NSPrivacyCollectedDataTypeTracking</key>
      <false/>
      <key>NSPrivacyCollectedDataTypePurposes</key>
      <array>
        <string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
      </array>
    </dict>
    <!-- Repeat this dict for each type: ProductInteraction, CrashData,
         PerformanceData, OtherDiagnosticData, CoarseLocation, and UserID
         if you call Identify(). Set Linked to true if Identify() sends an ID
         that identifies the player. -->
  </array>
</dict>
</plist>
```

### Godot

Godot makes the privacy manifest from the iOS export preset. In **Project > Export > iOS**, open the **Privacy** options:

**1. Turn off tracking**

**Tracking Enabled:** off. Leave **Tracking Domains** empty.

**2. Select the timestamp reason**

**File Timestamp Access Reasons:** select **C617.1**. Keep the reasons that are already selected.

**3. Set the collected data**

**Collected Data:** set these types: **Device ID**, **Product Interaction**, **Crash Data**, **Performance Data**, **Other Diagnostic Data**, and **Coarse Location**. If you call `identify()`, also set **User ID**. For each type:

* turn on **Collected**
* set **Collection Purposes** to **Analytics**
* turn off **Used For Tracking**
* turn on **Linked To User** only with an `identify()` call that sends an ID that identifies the player

In `export_presets.cfg`, these are the `privacy/tracking_enabled`, `privacy/file_timestamp_access_reasons`, and `privacy/collected_data/<type>/...` options (for example `privacy/collected_data/device_id/collected`).

### Unreal

Add the same entries as in the [Unity example](#unity) to the privacy manifest of your Unreal project. See Epic's documentation for where your engine version reads the file.

## Google Play Data safety

In Play Console, open **Policy and programs > App content > Data safety**.

### Data collection and security

| Question | Answer |
| - | - |
| Does your app collect or share any of the required user data types? | Yes |
| Is all of the user data collected by your app encrypted in transit? | Yes. The SDKs send events over HTTPS only. If you use a [reverse proxy](https://docs.manalens.dev/guides/reverse-proxy.md), it must use HTTPS too. |
| Do you provide a way for users to request that their data is deleted? | Yes, with two conditions. Players need a way to ask (for example a support email). You then delete their data in Manalens. See [delete player data](#delete-player-data). |

### Data types

For each data type below:

* **Collected:** Yes. **Shared:** No. Manalens is a service provider that processes the data for you, so it is not sharing.
* **Processed ephemerally:** No. Manalens stores events.
* **Required or optional:** Required. If you use [consent mode](https://docs.manalens.dev/guides/consent.md) for **all** players, you can answer **Optional**.
* **Why is this data collected:** Analytics.

| Category | Data type | Note |
| - | - | - |
| Location | Approximate location | Country only, from the IP address |
| Personal info | User IDs | Only with a call to `Identify()` / `identify()` |
| App activity | App interactions | Game events and sessions |
| App info and performance | Crash logs | `game_crash` |
| App info and performance | Diagnostics | Errors and hangs |
| Device or other IDs | Device or other IDs | The anonymous install ID |

## Delete player data

Apple and Google can ask how a player gets their data deleted. With Manalens, you delete it:

* **In the dashboard:** open the player, then **Danger zone**, **Delete player data**. See [Audience](https://docs.manalens.dev/features/audience/overview.md).
* **From your backend:** call the [player delete API](https://docs.manalens.dev/api/players/delete-player.md) with an API key that has the `profiles:delete` scope. When a player deletes their account, call it.

Manalens keeps events and player data until you delete them. There is no time limit. A deleted player's events are removed from analytics by delete jobs that usually finish within minutes.

`SetConsent(false)` / `set_consent(false)` stops tracking and deletes the ID and the queue **on the device**. It does not delete data that Manalens already has. The SDKs have no in-game deletion request yet. See [GDPR and privacy requests](https://docs.manalens.dev/data/privacy-requests.md).

## What you add

These answers cover the SDK defaults. If you send more data, add more data types:

* **Traits** such as `email` (sent from your server or the API: a game build cannot set it, see [protected traits](https://docs.manalens.dev/data/traits.md#protected-traits)) or a name: Personal info (Email address, Name), and Linked to the user.
* **A SteamID or another platform account ID:** User IDs, Linked to the user.
* **Purchase events** (for example `purchase` with a price): Financial info: Purchase history.
* **Chat text or other player content** in properties: declare that type too. Better: do not send it.

See [what we collect](https://docs.manalens.dev/data/what-we-collect.md) for the full list of fields, and [consent mode](https://docs.manalens.dev/guides/consent.md) for games that must ask for consent before analytics.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.