My app controls the camera and recently there have been a lot of crash reports by devices that cannot open the camera. Pressing the back button releases the camera but also disables the background mode. Pressing the home button doesn't release the camera, causes a crash when opening camera, and yet enables background mode.
How can I release the camera when the camera app itself is opened?