Skip to content

Commit 7f66b71

Browse files
committed
docs: update Photos Info.plist keys
1 parent e5ff245 commit 7f66b71

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,15 @@ Checks the authorization status for Photos access. If the status check returns:
350350
* `denied` - The `Security & Privacy` System Preferences window is opened with the Photos privacy key highlighted. On open of the `Security & Privacy` window, the Promise is resolved as `denied`.
351351
* `restricted` - The Promise is resolved as `restricted`.
352352

353-
Your app must provide an explanation for its use of the photo library using the `NSPhotoLibraryUsageDescription` `Info.plist` key.
353+
Your app must provide an explanation for its use of the photo library using either the `NSPhotoLibraryUsageDescription` or the `NSPhotoLibraryAddUsageDescription` `Info.plist` key.
354354

355+
For requesting add-only access to the user’s photo library:
356+
```
357+
<key>NSPhotoLibraryAddUsageDescription</key>
358+
<string>Your reason for wanting to access Photos</string>
359+
```
360+
361+
For requesting read/write access to the user’s photo library:
355362
```
356363
<key>NSPhotoLibraryUsageDescription</key>
357364
<string>Your reason for wanting to access Photos</string>

0 commit comments

Comments
 (0)