Open ghost opened 5 years ago
I fixed this by adding the following. I do not plan on using microphone or camera roll but it had to be there or it crashed.
<!-- Include this only if you are planning to use the camera roll -->
<key>NSPhotoLibraryUsageDescription</key>
<string>Your message to user when the photo library is accessed for the first time</string>
<!-- Include this only if you are planning to use the microphone for video recording -->
<key>NSMicrophoneUsageDescription</key>
<string>Your message to user when the microsphone is accessed for the first time</string>
I've just rolled back react-native-camera to version 1.6.3. I don't want to ask for microphone permission to scan a QRCode...
Actually it looks like for the full fix, you need to add the NSMicrophoneUsageDescription key as mentioned above and then set the cameraProps={{captureAudio: false}} as noted in https://github.com/moaazsidat/react-native-qrcode-scanner/issues/160
should be fixed when this is released: https://github.com/moaazsidat/react-native-qrcode-scanner/pull/168
What's happening?
When I go to the QR Scanner application, the scanner crashes the application and the following error comes up in my Xcode.
This happens AFTER I give it permission to use the camera. ( I have a NSCameraUsageDescription)
Build details?