# Photo Library

This feature enables broad, persistent access to the user's entire Photo Library on their device.

When to Enable (Broad Access):

* Enable this feature only if your app has a core function that requires broad, continuous access to the entire photo collection (e.g., photo editors, gallery management apps).

When to Disable (Limited Access):

* If your app only requires one-time or limited access to a single photo or video (e.g., for uploading a profile photo or attaching an image to a message), you should disable this feature.
* For limited access, you must use the system picker (which is accessed via your website's standard file uploader input). This fulfills the requirement without needing broad permissions, ensuring compliance with Google and Apple security policies.

Sometimes Apple may reject your app and require a more detailed explanation on how to use photo library.

* **Permission description** - The permission description text should explain to the user why your app needs that permission. Refer to [**Apple's guidelines** ](https://developer.apple.com/design/human-interface-guidelines/ios/app-architecture/accessing-user-data/)to avoid potential **rejection**.

### Rejection example:

<figure><img src="/files/tMPYl82UjSkA8FHkxSxq" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.buildnatively.com/natively-platform/features/photo-library.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
