braze-inc / braze-react-native-sdk

Public repo for the Braze React Native SDK
https://www.braze.com
Other
64 stars 84 forks source link

[Bug]: ITMS-91056: Invalid privacy manifest, ITMS-91064: Invalid tracking information #279

Closed QSuraj closed 1 week ago

QSuraj commented 1 week ago

Which Platforms?

iOS

Which React Native Version?

0.69.12

Which @braze/react-native-sdk SDK version?

8.4.0

Repro Rate

100% of the time

Steps To Reproduce

Steps:

  1. import Braze from "@braze/react-native-sdk".
  2. Braze.changeUser("id")
  3. Run the app.
  4. I have already added the PrivacyInfo image
<?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>
    <true/>
    <key>NSPrivacyCollectedDataTypes</key>
    <array>
        <dict>
            <key>NSPrivacyCollectedDataType</key>
            <string>NSPrivacyCollectedDataTypeCoarseLocation</string>
            <key>NSPrivacyCollectedDataTypeLinked</key>
            <true/>
            <key>NSPrivacyCollectedDataTypeTracking</key>
            <false/>
            <key>NSPrivacyCollectedDataTypePurposes</key>
            <array>
                <string>NSPrivacyCollectedDataTypePurposeProductPersonalization</string>
                <string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
            </array>
        </dict>
    </array>
    <key>NSPrivacyTrackingDomains</key>
    <array>
        <string>sdk-tracking.iad-05.braze.com</string>
    </array>
</dict>
</plist>

Expected Behavior

There should be no error while uploding to App Store.

Actual Incorrect Behavior

Gets following error after uploading to App store -

image

ITMS-91056: Invalid privacy manifest - The PrivacyInfo.xcprivacy file from the following path is invalid: “BrazeLocation.bundle/PrivacyInfo.xcprivacy”. Keys and values in your app’s privacy manifests must be valid. For more details about privacy manifest files, visit: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files.

ITMS-91064: Invalid tracking information - A PrivacyInfo.xcprivacy file contains invalid tracking information at the following path: “BrazeKit.bundle/PrivacyInfo.xcprivacy”. NSPrivacyTracking must be true if NSPrivacyTrackingDomains isn’t empty. Keys and values in your app’s privacy manifests must be valid. For more details about privacy manifest files, visit: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files.

Verbose Logs

No response

Additional Information

No response

jerielng commented 1 week ago

Hey @QSuraj, this has been resolved as of 10.0.0, which was addressed in the underlying Swift SDK. If you are still facing this issue after upgrading to the latest, feel free to reach back out. Thanks!

QSuraj commented 1 week ago

@jerielng Getting following error when trying to update to 10.0.0

Invalid `braze-react-native-sdk.podspec` file: undefined method `install_modules_dependencies' for module Pod.
QSuraj commented 1 week ago

Reopened a new issue - https://github.com/braze-inc/braze-react-native-sdk/issues/280