I have an app that uses live preview to monitor the camera image and a virtual shutter button to take photos. This works as expected. However, the camera hardware shutter button throws a generic KotlinException error and the live preview is stopped. I am using code from the iOS demo app and experiencing this problem.
How can I take a photo using the hardware shutter button and have it react the same as the takePicture() func in the demo app (alerting me an image has been taken by the hardware, and passing a download url)?