""."/> "".">

Home >Web Front-end >uni-app >What should I do if uniapp cannot open camera permissions?

What should I do if uniapp cannot open camera permissions?

藏色散人
藏色散人Original
2021-03-16 10:45:1710605browse

The solution to the problem that uniapp cannot open the camera permission: first open the manifest.json file; then add the code "71d8f31045b12cec551ebb27a1564df3"" that is Yes.

What should I do if uniapp cannot open camera permissions?

The operating environment of this article: windows7 system, uni-app2.5.1 version, DELL G3 computer.

Specific problem:

When uniapp is packaged, camera permission is not obtained.

After uniapp is packaged, and the Android phone uses the QR code scanning function, camera permission is not obtained.

Checking the following permissions in manifast.json has no effect. I don’t know where to set the permissions specifically. Please ask for support.

"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",

Solution:

manifest. Just add this to the json file71d8f31045b12cec551ebb27a1564df3"

Recommended: "uniapp tutorial"

The above is the detailed content of What should I do if uniapp cannot open camera permissions?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn