Privacy manifest files

In SDK source code there is PrivacyInfo.xcprivacy, which describes the data the SDK collects and the reasons the required APIs use that data.

You can find more information about privacy manifests on the Apple Developer Documentation.

Describing data use in privacy manifests

Record the categories of data that your app or third-party SDK collects about the person using the app, and the reasons it collects the data.

If you enable the option to send voice messages, you must add the NSPrivacyCollectedDataTypeAudioData data type to your PrivacyInfo file. Likewise, if you enable the Share Location option, you may need to add NSPrivacyCollectedDataTypePreciseLocation data type to your PrivacyInfo file, depending on the scenario. If you enable the option to send photo or video messages, you must add the NSPrivacyCollectedDataTypePhotosorVideos data type to your PrivacyInfo file.

You can find more information about describing data use in privacy manifests on the Apple Developer Documentation.

An example of a privacy manifest is given below:

Copy
Copied
    <key>NSPrivacyCollectedDataTypes</key>
    <array>
        <dict>
            <key>NSPrivacyCollectedDataType</key>
            <string>NSPrivacyCollectedDataTypeAudioData</string>
            <key>NSPrivacyCollectedDataTypeLinked</key>
            <false/>
            <key>NSPrivacyCollectedDataTypeTracking</key>
            <false/>
            <key>NSPrivacyCollectedDataTypePurposes</key>
            <array>
                <string>User can send voice message to the other user using chat.</string>
            </array>
        </dict>
        <dict>
            <key>NSPrivacyCollectedDataType</key>
            <string>NSPrivacyCollectedDataTypePhotosorVideos</string>
            <key>NSPrivacyCollectedDataTypeLinked</key>
            <false/>
            <key>NSPrivacyCollectedDataTypeTracking</key>
            <false/>
            <key>NSPrivacyCollectedDataTypePurposes</key>
            <array>
                <string>User can send his photos or videos to the other user using chat.</string>
            </array>
        </dict>
        <dict>
            <key>NSPrivacyCollectedDataType</key>
            <string>NSPrivacyCollectedDataTypePreciseLocation</string>
            <key>NSPrivacyCollectedDataTypeLinked</key>
            <false/>
            <key>NSPrivacyCollectedDataTypeTracking</key>
            <false/>
            <key>NSPrivacyCollectedDataTypePurposes</key>
            <array>
                <string>User can send his location to the other using chat.</string>
            </array>
        </dict>
    </array>

Now that you have assigned permissions and populated the privacy manifests, you can show the chat.

We'd love to hear from you!
Rate this content:
Still have a question?
 
Ask the community.