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.
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 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!