React-native-image-crop-picker: Android10 even permissions enabled also camera not open in log deniened

Created on 17 Jun 2020  Â·  11Comments  Â·  Source: ivpusic/react-native-image-crop-picker

Android10 Version
Even permissions enabled also camera not open in log Error : denied
"react-native-image-crop-picker": "^0.28.0",

react-native-cli: 2.0.1
react-native: 0.61.5

below android 10 working fine.

Platform

Tell us to which platform this issue is related

  • Android10 API Level 29

Most helpful comment

Setting usesCleartextTraffic to true is definetly not a solution. This is a debug workaround and should not be used in production until a real fix is implemented.

@ivpusic I am using 0.32.2, and I'm still getting the "Invalid Image selected" error when I select an image from the Gallery "tab"/view in Android 10.

All 11 comments

android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="false"
android:largeHeap="true"
android:theme="@style/AppTheme">
add theses lines to your android manifiest application
android:allowBackup="false"
android:largeHeap="true"
and it will work just fine

I have this problem. Is it solvable?

actually am updating that react-native-image-crop-picker to latest 0.32
version then its working for me

On Tue, Jun 23, 2020 at 11:24 PM Erkan YeÅŸersin notifications@github.com
wrote:

I have this problem. Is it solvable?

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ivpusic/react-native-image-crop-picker/issues/1318#issuecomment-648321014,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABFNT7NQAIDKZERW7LR6GUDRYDT4TANCNFSM4OANW2SQ
.

--
Thanks & Regards:
Harsha.Kotta
+91 9912181939

  android:usesCleartextTraffic="true"
  android:requestLegacyExternalStorage="true"

Please add these to androidmanifiest then it will work on android 10

I have this problem. Is it solvable?

android:usesCleartextTraffic="true"
android:requestLegacyExternalStorage="true"
Please add these to androidmanifiest then it will work on android 10

this issue is fixed in version v0.32.0. please use that version if targeting android 10

when am trying to run in android 10 nokia 6.1
from v0.32.0
camera working fine
but from gallery selection:
Invalid image selected
fn@
http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2130:45
showGallery@
http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:376433:55
onPress@
http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:376975:105

http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:324048:32
callCallback@
http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:13793:22

On Wed, Jun 24, 2020 at 2:25 PM Ivan Pusic notifications@github.com wrote:

Closed #1318
https://github.com/ivpusic/react-native-image-crop-picker/issues/1318.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ivpusic/react-native-image-crop-picker/issues/1318#event-3476494137,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABFNT7ME5N2QJNVFP2CAOV3RYG5QLANCNFSM4OANW2SQ
.

--
Thanks & Regards:
Harsha.Kotta
+91 9912181939

showGallery called
WARN Possible Unhandled Promise Rejection (id: 0):
Error: Invalid image selected

On Fri, Jun 26, 2020 at 4:11 PM harsha kotta kotta.harsha@gmail.com wrote:

when am trying to run in android 10 nokia 6.1
from v0.32.0
camera working fine
but from gallery selection:
Invalid image selected
fn@
http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2130:45
showGallery@
http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:376433:55
onPress@
http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:376975:105

http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:324048:32
callCallback@
http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:13793:22

On Wed, Jun 24, 2020 at 2:25 PM Ivan Pusic notifications@github.com
wrote:

Closed #1318
https://github.com/ivpusic/react-native-image-crop-picker/issues/1318.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ivpusic/react-native-image-crop-picker/issues/1318#event-3476494137,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABFNT7ME5N2QJNVFP2CAOV3RYG5QLANCNFSM4OANW2SQ
.

--
Thanks & Regards:
Harsha.Kotta
+91 9912181939

--
Thanks & Regards:
Harsha.Kotta
+91 9912181939

  android:usesCleartextTraffic="true"
  android:requestLegacyExternalStorage="true"

Please add these to androidmanifiest then it will work on android 10

This solution is worked for me thanks....:)

Setting usesCleartextTraffic to true is definetly not a solution. This is a debug workaround and should not be used in production until a real fix is implemented.

@ivpusic I am using 0.32.2, and I'm still getting the "Invalid Image selected" error when I select an image from the Gallery "tab"/view in Android 10.

@mrousavy From this article, it seems ok if we use android:requestLegacyExternalStorage="true" as a workaround for now: https://medium.com/@sriramaripirala/android-10-open-failed-eacces-permission-denied-da8b630a89df

Was this page helpful?
0 / 5 - 0 ratings

Related issues

victorwpbastos picture victorwpbastos  Â·  3Comments

fmcruz picture fmcruz  Â·  3Comments

althurzard picture althurzard  Â·  3Comments

DISKONEKTeD picture DISKONEKTeD  Â·  3Comments

tximpa91 picture tximpa91  Â·  3Comments