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
@@ -76,6 +78,27 @@ Add the following permissions to the `App_Resources/Android/src/main/AndroidMani
76
78
77
79
See the complete example [here](https://github.com/NativeScript/plugins/blob/main/tools/assets/App_Resources/Android/src/main/AndroidManifest.xml#L14).
78
80
81
+
### Android Photo picker
82
+
83
+
For phones running android 13+ specifying the option `android.use_photo_picker = true` when creating the `ImagePicker` will result in the use of the System Photo Picker.
84
+
85
+
<!-- tabs: TS -->
86
+
87
+
```ts
88
+
let imagePickerObj:ImagePicker=imagePickerPlugin.create({
89
+
mode: 'single',
90
+
android: { use_photo_picker: true },
91
+
})
92
+
```
93
+
94
+
This means you can remove the `READ_MEDIA_IMAGES, READ_MEDIA_VIDEO` permissions and do not have to prompt the user for permission.
95
+
96
+
Full details [here](https://developer.android.com/training/data-storage/shared/photopicker).
97
+
98
+
You can also now limit the number of images that are selectable in the Photo Picker by specifying the `maximumNumberOfSelection` option.
99
+
100
+
For phones running < Android 13, this `use_photo_picker` option has no effect.
101
+
79
102
### iOS required permissions
80
103
81
104
Using the plugin on iOS requires the `NSPhotoLibraryUsageDescription` permission. Modify the `app/App_Resources/iOS/Info.plist` file to add it as follows:
@@ -189,7 +212,7 @@ An object passed to the `create` method to specify the characteristics of a medi
0 commit comments