You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/imagepicker.md
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,10 @@ Install the plugin by running the following command in the root directory of you
39
39
npm install @nativescript/imagepicker
40
40
```
41
41
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
+
42
46
**Note: Version 3.0 contains breaking changes:**
43
47
44
48
- authorize() now returns a `Promise<AuthorizationResult>` for both android and ios.
@@ -82,6 +86,21 @@ Using the plugin on iOS requires the `NSPhotoLibraryUsageDescription` permission
82
86
83
87
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.
84
88
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`:
0 commit comments