Home > Blockchain >  Error reading from camera: PlatformException(CAMERA_ERROR, QrReader couldn't open camera, null,
Error reading from camera: PlatformException(CAMERA_ERROR, QrReader couldn't open camera, null,

Time:03-15

I am testing my app on and iOS and scanning qr codes functionality https://pub.dev/packages/qr_mobile_vision is not working for me with error mentioned in title.

I add

platform :ios, '11.0'

I make both other steps mentioned in package site but I am still getting this error.

I have

<key>NSCameraUsageDescription</key>

in my info.plist file under Runner folder and I don't have idea what I can do more to fix it?

Maybe this is just happening on iOS simulator? I don't have possibility to check it on physical iOS device.

CodePudding user response:

The iOS Simulator has no camera, as you mentioned this is a simulator specific issue. You will need to run your app on a physical device.

  • Related