The bug here https://github.com/NativeScript/mlkit/issues/8 was not resolved. As the title says, on iOS I cannot activate the torch. However, I now got an additional error message in the debugger which might help.
ERROR Error: *** -[AVCaptureDevice setTorchMode:] May not be called without first successfully gaining exclusive ownership of the device using -lockForConfiguration:
Seems like the device needs to be exclusively locked somewho in order to be able to change the torch state.
The bug here https://github.com/NativeScript/mlkit/issues/8 was not resolved. As the title says, on iOS I cannot activate the torch. However, I now got an additional error message in the debugger which might help.
ERROR Error: *** -[AVCaptureDevice setTorchMode:] May not be called without first successfully gaining exclusive ownership of the device using -lockForConfiguration:
Seems like the device needs to be exclusively locked somewho in order to be able to change the torch state.