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?

藏色散人
Release: 2023-01-13 00:44:38
Original
10606 people have browsed it

The solution to the problem that uniapp cannot open the camera permission: first open the manifest.json file; then add the code """ 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\"/>",
Copy after login

Solution:

manifest. Just add this to the json file"

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template