I have an ionic cordova app. Apple is now requiring us to provide reasons for certain API access in our privacy-manifest. I need to add "CA92.1" as the reason for NSPrivacyAccessedAPICategoryUserDefaults.
I see cordova-ios 7.1.0 includes the ability to add a privacy-manifest to the config file.
I updated my cordova-ios to version 7.1.0 and updated my config.xml to look like this:
<platform name="ios">
<privacy-manifest>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPICategoryUserDefaults</key>
<string>CA92.1</string>
</dict>
</array>
</privacy-manifest>
.....
I also tried without the <dict/>
tag
however I got an email from Apple:
ITMS-91056: Invalid privacy manifest - The PrivacyInfo.xcprivacy file from the following path is invalid: “PrivacyInfo.xcprivacy”. While no action is required at this time, starting May 1, 2024, when you upload a new app or app update, keys and values in your app’s privacy manifest must be in a valid format. For more details about privacy manifest files, visit: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files.
Any ideas on how to adjust this to the correct format? Thanks :)
Added information: This is how cordova-ios describes it should be formatted: https://cordova.apache.org/announcements/2024/04/03/cordova-ios-7.1.0.html