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?

Mar 16, 2021 am 10:45 AM
uniapp

The solution to the problem that uniapp cannot open the camera permission: first open the manifest.json file; then add the code "<uses-permission android:name=\"android.permission.CAMERA\"/>"" 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.

&quot;&lt;uses-feature android:name=\&quot;android.hardware.camera\&quot;/&gt;&quot;,
&quot;&lt;uses-feature android:name=\&quot;android.hardware.camera.autofocus\&quot;/&gt;&quot;,
Copy after login

Solution:

manifest. Just add this to the json file<uses-permission android:name=\"android.permission.CAMERA\"/>"

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

Hot Article

Hot Article

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to start preview of uniapp project developed by webstorm How to start preview of uniapp project developed by webstorm Apr 08, 2024 pm 06:42 PM

How to start preview of uniapp project developed by webstorm

Which one is better, uniapp or mui? Which one is better, uniapp or mui? Apr 06, 2024 am 05:18 AM

Which one is better, uniapp or mui?

What development tools do uniapp use? What development tools do uniapp use? Apr 06, 2024 am 04:27 AM

What development tools do uniapp use?

What basics are needed to learn uniapp? What basics are needed to learn uniapp? Apr 06, 2024 am 04:45 AM

What basics are needed to learn uniapp?

What are the disadvantages of uniapp What are the disadvantages of uniapp Apr 06, 2024 am 04:06 AM

What are the disadvantages of uniapp

In-depth comparison between Flutter and uniapp: explore their similarities, differences and characteristics In-depth comparison between Flutter and uniapp: explore their similarities, differences and characteristics Dec 23, 2023 pm 02:16 PM

In-depth comparison between Flutter and uniapp: explore their similarities, differences and characteristics

What component library does uniapp use to develop small programs? What component library does uniapp use to develop small programs? Apr 06, 2024 am 03:54 AM

What component library does uniapp use to develop small programs?

Which is better, uniapp or native development? Which is better, uniapp or native development? Apr 06, 2024 am 05:06 AM

Which is better, uniapp or native development?

See all articles