Content-Length: 301712 | pFad | http://github.com/NativeScript/docs-v8/commit/1290b6b454fdf0dbf59eca388198cb8e10ab7dbe

33 chore(update-plugins): Thu Feb 8 08:05:21 UTC 2024 · NativeScript/docs-v8@1290b6b · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/docs-v8/commit/1290b6b454fdf0dbf59eca388198cb8e10ab7dbe

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy