Skip to content

Commit 1290b6b

Browse files
chore(update-plugins): Thu Feb 8 08:05:21 UTC 2024
1 parent 2aaafb5 commit 1290b6b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

plugins/imagepicker.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ Install the plugin by running the following command in the root directory of you
3939
npm install @nativescript/imagepicker
4040
```
4141

42+
**Note: Version 3.1 contains breaking changes:**
43+
44+
- New behavior on iOS when the user selects `Limit AccessLim..` detailed in [iOS Limited permission](#ios-limited-permission).
45+
4246
**Note: Version 3.0 contains breaking changes:**
4347

4448
- authorize() now returns a `Promise<AuthorizationResult>` for both android and ios.
@@ -82,6 +86,21 @@ Using the plugin on iOS requires the `NSPhotoLibraryUsageDescription` permission
8286

8387
Apple App Store might reject your app if you do not describe why you need this permission. The default message `Requires access to photo library.` might not be enough for the App Store reviewers.
8488

89+
### iOS Limited permission
90+
91+
Apple introduced the `PHAuthorizationStatusLimited` permission status with iOS 14, this is where the user specifies that the app can only access specified photos by choosing the `Limit Access..` option in the authorization dialog.
92+
93+
In this case `authorise()` will return an `AuthorizationResult` where `authorized` will be `true` and the `details` will contain `'limited'`.
94+
95+
Every time the app is launched anew, and the authorize method is called, if the current permission is `limited` the user will be prompted to update the image selection.
96+
97+
To prevent this prompt, add the following values to your `App_Resources/iOS/Info.plist`:
98+
99+
```xml
100+
<key>PHPhotoLibraryPreventAutomaticLimitedAccessAlert</key>
101+
<true/>
102+
```
103+
85104
## Pick images
86105

87106
To pick images (and/or videos) with the plugin, take the steps below:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy