Fix issues with camera flash for iOS access

Source: Internet
Author: User

The IONIC3 project on Mac is packaged into an Apple app, and the system version is 10.3.3.

When the camera is called, a flashback occurs, which is a problem with debugging:

This app had crashed because it attempted to access privacy-sensitive data without a usage description. The app ' s info.plist must contain an nscamerausagedescription key with a string value explaining to the user how the app u SES this data.

Solution:

Open Xxx.pbxproj using Xcode

Open Info.plist Add directly

or add directly

<key>NSCameraUsageDescription</key><string>cameradesciption</string>

Plus this one doesn't show up when the app crashes when it calls the camera.

Fix issues with camera flash for iOS access

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.