Our approach to this is to make it possible to specify a custom camera app to use in a form definition. The user will need to have that camera app installed and correctly configured. The values collected by the camera app will not be saved to the form definition.
More at Using a camera app other than the default one in Android 11+