Mobile Apps

iOS Privacy Manifests and Required-Reason API Declarations

Understand how iOS privacy manifests work, how required-reason API declarations impact your app, and how to avoid common pitfalls.

Mohammed Saqib8 min read
Elegant arrangement of glasses, phone, watch, mouse, pencil, and tablet on a white surface.
Photo by Marek Levak on Pexels · Pexels License

If your app crashes or is rejected from the App Store due to missing required-reason API declarations in your iOS privacy manifest, you’re not alone — and the fix isn’t just about adding a few lines to Info.plist. The problem lies in misunderstanding how Apple enforces privacy permissions, and how your app’s use of sensitive APIs must be explicitly justified in a way that aligns with both technical behavior and the App Store Review Guidelines.

What Are iOS Privacy Manifests?

iOS privacy manifests are a critical part of the app submission process for any app that requests access to user data such as location, contacts, calendar, or microphone. These manifests are not just a formality—they are a contractual agreement between the developer and Apple, explicitly stating what data the app will access and why. The manifest is a JSON file that must be included in the app bundle and reviewed as part of the App Store compliance checks. The file is typically named PrivacyManifest.plist and must conform to a specific schema that Apple enforces.

The manifest must declare all the data types the app will access, along with a required-reason for each. This required-reason is a string that explains why the app needs that particular data. For example, if the app requests access to location, the required-reason might be “To provide location-based services to users.” The required-reason is not a justification for the app to use the data, but rather a declaration of the app’s intent. It must be specific and not vague, as Apple will scrutinize it during the app review process.

One of the most common pitfalls is omitting a required-reason for a declared data type. This will result in the app being rejected during the App Store review. The manifest must also be in the correct format—any deviation from the expected structure will cause the submission to fail. Apple provides an official guide on the iOS privacy manifest format, which is essential reading for developers.

While the manifest is required for apps requesting access to user data, it is not the only part of the privacy compliance process. The next section will explore the required-reason API declarations in more detail. If you're working on an app that needs to run efficiently in the background on Android, you might also want to read Working Within Android Background Execution Limits. And if you're concerned about how much your app is actually shipping, check out App size budgets: finding out what actually ships in your bundle.

Required-Reason API Declarations

Required-Reason API declarations are a core part of the iOS privacy manifest, and they serve as a contractual obligation between the app and Apple. Every time you request access to an API that requires user consent, such as location, camera, or microphone, you must specify exactly why the app needs it. This is not a suggestion — it’s a requirement. The system uses these declarations to validate that the app is not requesting permissions in a way that could be considered invasive or unnecessary.

The required-reason field is a string that must precisely reflect the app’s usage of the API. For example, if your app uses location to provide navigation, the declaration must be exactly "Navigation" — no more, no less. Vagueness here is a red flag. Apple’s App Store compliance tools will flag any mismatch between the declared reason and the actual usage, and the app may be rejected during review.

The declaration is made in the Info.plist file under the NSPrivacyRequiredReason key for each API. The format is straightforward: a key-value pair where the key is the API identifier and the value is the required-reason string. For instance, for location access, you would set NSLocationUsageDescription with the value "Navigation".

<key>NSLocationUsageDescription</key>
<string>Navigation</string>

This declaration is essential for iOS app review. Apple uses it to ensure that apps respect user privacy and only request the minimum necessary permissions. Failing to declare required reasons accurately is a common cause of app rejection. Always double-check that your declarations match the actual API usage, and avoid using generic or vague descriptions.

Comparing Required-Reason Options

When configuring your iOS privacy manifest, the choice of required-reason is not just a formality—it’s a technical decision with real implications for app behavior, user trust, and App Store compliance. Each required-reason value defines how and when your app can access sensitive data, and the API declarations must reflect this accurately.

Use Always for features that are essential to the core functionality of your app. For example, if your app relies on real-time location tracking for navigation or safety features, Always is the correct choice. This ensures the app can access the data continuously, without user intervention. The API declaration for such a use case would include a required-reason of Always and a purpose that clearly states the necessity of the data for the app’s core function.

Conversely, use When In Use for non-critical features that do not require continuous access. For instance, if your app uses location data for map overlays or contextual information that is only relevant when the app is actively in use, When In Use is appropriate. This setting requires the user to grant permission, and the app can only access the data while the app is in the foreground.

Avoid generic reasons like “for user experience” or “to improve functionality.” These are vague and do not meet the App Store’s standards for transparency. Instead, provide specific, actionable justifications that align with the actual use of the data.

Required-Reason Use Case App Store Compliance User Experience
Always Real-time tracking, safety features High Continuous access may raise privacy concerns
When In Use Map overlays, contextual data High Requires user permission, may reduce trust

The required-reason API declaration should be structured with a purpose field that clearly explains why the data is needed. For example: "purpose": "To provide real-time location tracking for navigation".

Apple’s documentation provides further guidance on how to structure these declarations. https://developer.apple.com/documentation/privatedata/required-reason-api

Common Gotchas and Failure Modes

The App Store review process is unforgiving when it comes to privacy manifests and required-reason declarations. A missing or malformed Info.plist file with the NSPrivacyManifest key is a common cause of rejection. The manifest must be a dictionary with the type set to com.apple.privacy.manifest and the manifest key pointing to a valid JSON file. If the file is not present, or if the structure is incorrect, the app will be rejected outright. This is a hard rule—no exceptions.

Over-declaring APIs is another pitfall. Every required-reason declaration in the manifest is a public-facing statement about your app’s data usage. If you declare an API that your app doesn’t actually use, users may question your intentions. This can lead to negative reviews and lower trust. The required-reason string should be precise and reflect the exact purpose of the API call. For example, if you’re using location to get the user’s current city, the reason should be “Determine user’s current city for location-based recommendations,” not a generic “Location access for unspecified purposes.”

Misaligned declarations can also trigger privacy violations. If the required-reason string doesn’t match the actual API usage, Apple may flag the app. The required-reason is a contractual promise. For example, if you declare “Access location to find nearby stores,” but the app uses location to track the user’s movements over time, that’s a mismatch.

<key>NSPrivacyManifest</key>
<dict>
    <key>type</key>
    <string>com.apple.privacy.manifest</string>
    <key>manifest</key>
    <string>https://example.com/manifest.json</string>
</dict>

This XML snippet shows a valid manifest configuration. It ensures the app is recognized by the App Store as compliant. Always validate the manifest URL and ensure it’s accessible and correctly formatted.

Best Practices for Manifest and API Declarations

Review Apple’s documentation to ensure declarations are accurate and compliant. The ios privacy manifest is not a suggestion—it’s a contractual obligation. Every API you declare must be tied to a specific use case. If you're requesting access to the user’s location, you must have a clear, documented reason. Apple’s App Store compliance team will scrutinize these declarations, and if they find any overreach, your app will be rejected. This is not a hypothetical scenario; it’s a reality that has happened to many developers.

Test your app with the App Store’s privacy manifest validator tool. This tool is not publicly accessible, but if you're using Xcode 15 or later, the validation process is built into the submission flow. You should run this manually before submitting to catch any issues early. The tool will flag any misconfigured or incomplete declarations, which can save you from a painful app review rejection. It’s worth the time—it’s better to fix it now than to wait for a rejection and resubmit.

Keep declarations focused on actual use cases to avoid overreach and maintain trust. If your app doesn’t need location access, don’t declare it. If you’re using push notifications, ensure your required-reason API declaration clearly states that you’re using them for in-app messages, not for tracking. Over-declaration is a common failure mode and can erode user trust. It’s not just about compliance—it’s about transparency. Users are more likely to trust an app that’s honest about its data needs.

If you're struggling with debugging native crashes in your JavaScript code, consider Debugging native crashes when your team only writes JavaScript as a follow-up step.

Key takeaways

  • Include the privacy manifest in your app bundle as a JSON file named PrivacyManifest.json and ensure it matches the exact API declarations in your Info.plist.
  • Use Always for data access that is essential to core app functionality, and When In Use for optional or context-aware features.
  • Validate your manifest using Apple’s privacy manifest validator tool before submitting to the App Store to avoid rejection.
  • Avoid vague or generic required-reason descriptions; always tie API access to a specific, measurable use case.
  • Regularly audit your manifest and API declarations to ensure they remain aligned with actual data usage and user expectations.

Frequently asked questions

What happens if I submit an app without a privacy manifest?
Your app will be rejected during App Store review as it violates iOS privacy requirements.
Can I use the same required-reason for multiple APIs?
No, each API access must have a specific and justified reason to avoid rejection.
How do I test my privacy manifest before submission?
Use Apple’s official privacy manifest validator tool to check for formatting and content errors.
#ios#privacy#manifest#api#required-reason
Share

Keep reading