Skip to main content

Privacy Manifest

Apple introduced new privacy protocols for third-party SDKs at WWDC23, requiring SDK authors to declare approved reasons for API usage within their SDKs to enhance transparency and user privacy.

Starting March 13th, 2024, App Store Connect will notify users when a new or updated app is uploaded without approved reasons to access certain APIs.

Starting May 1st, 2024, you will be required to include approved reasons when submitting a new or updated app to App Store Connect.

This requirement applies to any iOS app regardless of the toolchain used to build it — a Napacitor MAUI app must comply just like a Capacitor or native Xcode app.

Steps to Meet Requirements​

Not all Applications will be flagged, but certain plugins (for example @napacitor/preferences, which uses UserDefaults) may necessitate a Privacy Manifest File. If you have received a notification:

  1. Upgrade the @napacitor/* packages to the latest version (npx nap sync afterwards);
  2. Create the PrivacyInfo.xcprivacy file in the MAUI host (see below).

Creating the Privacy Manifest​

Create a file named PrivacyInfo.xcprivacy in the maui/Platforms/iOS/ folder of your host project. .NET MAUI automatically bundles PrivacyInfo.xcprivacy files found in this folder into your app. See the MAUI privacy manifest documentation for details.

The file is easiest to edit manually as raw XML. As a sample, here is a PrivacyInfo.xcprivacy file that covers the UserDefaults API, used by the @napacitor/preferences plugin:

<?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>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
</array>
</dict>
</array>
<key>NSPrivacyTrackingDomains</key>
<array/>
</dict>
</plist>

To find code and plugins which may require privacy manifest changes you can use a script like this one by running sh required_reason_api_text_scanner.sh node_modules.

To choose the correct reason codes (like CA92.1 in the above example) you will need to read Apple's documentation.

Before Store Submission​

Before App store submission you may need to disclose user tracking, tracking domains or collection of other data types that are unique for your application. See Apple's documentation for more information.