Skip to main content
FieldValue
Package@cometchat/chat-uikit-react-native
File locationios/YourApp/PrivacyInfo.xcprivacy
Required APIsNSPrivacyAccessedAPICategoryFileTimestamp (C617.1), NSPrivacyAccessedAPICategoryUserDefaults (CA92.1), NSPrivacyAccessedAPICategorySystemBootTime (35F9.1), NSPrivacyAccessedAPICategoryDiskSpace (E174.1)
PurposeConfigure required Apple Privacy Manifest for App Store compliance
RelatedGetting Started · Expo Integration · All Guides

Overview

The Apple Privacy Manifest enhances privacy and transparency for apps on Apple’s platforms. As part of Apple’s commitment to user privacy and data security, they introduced the “App Privacy Details” section — a privacy label for each app. The privacy manifest is a property list that records:
  • The types of data collected by an app or third-party SDK
  • The required reasons APIs an app or third-party SDK uses
For each type of data an app or third-party SDK collects and category of required reasons API it uses, the app or SDK needs to record the reasons in its bundled privacy manifest file.

React Native UI Kit Privacy Requirements

If you are using the React Native UI Kit, you need to add the following entries to your Privacy Manifest file.

Dependencies Requiring Privacy Declarations

  1. React Native Framework React Native uses several APIs that require privacy declarations. See the React Native community discussion for more details.
  2. SPTPersistentCache The React Native UI Kit uses a native module (a fork of react-native-video) that has an internal dependency on SPTPersistentCache. This library uses one of the APIs listed by Apple.

Privacy Manifest File

Below is the complete Privacy Manifest that should be included in your application:
<?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>NSPrivacyAccessedAPITypes</key>
    <array>
        <dict>
            <key>NSPrivacyAccessedAPIType</key>
            <string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
            <key>NSPrivacyAccessedAPITypeReasons</key>
            <array>
                <string>C617.1</string>
            </array>
        </dict>
        <dict>
            <key>NSPrivacyAccessedAPIType</key>
            <string>NSPrivacyAccessedAPICategoryUserDefaults</string>
            <key>NSPrivacyAccessedAPITypeReasons</key>
            <array>
                <string>CA92.1</string>
            </array>
        </dict>
        <dict>
            <key>NSPrivacyAccessedAPIType</key>
            <string>NSPrivacyAccessedAPICategorySystemBootTime</string>
            <key>NSPrivacyAccessedAPITypeReasons</key>
            <array>
                <string>35F9.1</string>
            </array>
        </dict>
        <dict>
            <key>NSPrivacyAccessedAPIType</key>
            <string>NSPrivacyAccessedAPICategoryDiskSpace</string>
            <key>NSPrivacyAccessedAPITypeReasons</key>
            <array>
                <string>E174.1</string>
            </array>
        </dict>
    </array>
    <key>NSPrivacyCollectedDataTypes</key>
    <array/>
    <key>NSPrivacyTracking</key>
    <false/>
</dict>
</plist>

Creating the Privacy Manifest

1

Create a new file in Xcode

Open Xcode and choose File > New > File…
Xcode File Menu
2

Select App Privacy file type

Scroll down to the Resource section, select the App Privacy file type, and click Next.
Select App Privacy File Type
3

Select the target

Select your app target, then click Create.
Select Target
4

Keep the default filename

By default, the file is named PrivacyInfo.xcprivacy. Do not change this filename.
5

Replace the file content

This creates an empty Privacy Manifest file. Replace the content with the manifest XML provided above.
Privacy Manifest Content

Next Steps