Permission to open camera denied on Android SDK 29

Asked

Viewed 36 times

0

After changing the SDK to 29, the camera that used to open normally on the 28th is now denied permission.

My project is developed in "React-Native": "0.59.9".

Here are some additional information:

build.Gradle

inserir a descrição da imagem aqui

Warning:

inserir a descrição da imagem aqui

I point out to those who are reading that I followed the guidelines of this article https://www.reactnativeschool.com/how-to-upgrade-react-native-app-to-api-level-29, however, after the procedure I am facing the camera problem.

Has anyone ever faced a problem like this? They would know how to guide me on how to proceed?

  • How are you opening the camera? It has to do with some package?

  • I am using the "React-Native-camera" package: "2.10.1"

  • @Rafaeltavares, good afternoon! An important piece of information is that I tested the code on 2 different emulators just now. The camera opened normally on android 9 and 10 did not open.

  • Searching I did not find anything about camera permission, but had a change in privilege in relation to file system on Android 10, I do not know if this is the problem because I never used the camera and I do not know if you are trying to access an improper directory to save the photos, for example

  • Do you believe that version 0.59 of React Native is making an impact? I’m having doubts whether I should update the version or even just the camera lib.

  • Unlikely to be the problem, but I don’t rule it out. You would need to test on a clean project in the current version and in the 0.59 version. Even so, it is recommended to keep a more updated version, the 0.64 has already had a release candidate.

  • Perfect Gabriel. Thank you for your support! I will continue searching here.

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.