Open Sahand-Stefan opened 1 year ago
Hey make sure to check out the following: https://github.com/ivpusic/react-native-image-crop-picker#important-notes I had to install version 0.38 to make the image picker work again.
edit: Alternatively you can add this <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
to your AndroidManifest.xml
edit: Alternatively you can add this
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
to your AndroidManifest.xml
This should be added to the installation guide!
Hey make sure to check out the following: https://github.com/ivpusic/react-native-image-crop-picker#important-notes I had to install version 0.38 to make the image picker work again.
edit: Alternatively you can add this
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
to your AndroidManifest.xml
This was a lifesaver and they should include it in the documentation. Thanks!
Hey make sure to check out the following: https://github.com/ivpusic/react-native-image-crop-picker#important-notes I had to install version 0.38 to make the image picker work again.
edit: Alternatively you can add this
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
to your AndroidManifest.xml
This perfectly works, please add this to the docs. Thanks
Hey make sure to check out the following: https://github.com/ivpusic/react-native-image-crop-picker#important-notes I had to install version 0.38 to make the image picker work again.
edit: Alternatively you can add this
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
to your AndroidManifest.xmlHey make sure to check out the following: https://github.com/ivpusic/react-native-image-crop-picker#important-notes I had to install version 0.38 to make the image picker work again.
edit: Alternatively you can add this
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
to your AndroidManifest.xml
Did you downgrade it? I have the sdk version set to 33 and crop picker version is 0.40 but still needed to add the permission to work.
Had to upgrade to 0.38.1 for this to work, had all the permissions in the manifest file. Target sdk 33
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
I was having same issue using 0.26.1 with rn 0.73.4, had to add
With above permission, the feature works as expected on Android 13 and above but while submitting to playstore, they are considering it as app violation saying:
Photo and Video Permissions policy: Permission use is not directly related to your app’s core purpose.
Can anyone help with this please.
Version
Tell us which versions you are using:
Platform
[Error: Required permission missing]
permissions .request(permissions.PERMISSIONS.ANDROID.READ_EXTERNAL_STORAGE) .then(async (result) => { await ImagePicker?.openPicker({ cropping: true, mediaType: "photo", cropperCircleOverlay: true, }) .then((photo) => { console.log(photo) pickedFile(photo?.path) }) .catch((error) => console.log(error))
This is the code, no permissions can open the file select.
Expected behaviour
Should open the photos gallery on phone
Actual behaviour
[Error: Required permission missing]
Steps to reproduce
1.
2.
3.
Attachments
// stacktrace or any other useful debug info
Love react-native-image-crop-picker? Please consider supporting our collective: 👉 https://opencollective.com/react-native-image-crop-picker/donate