UIFeedbackGenerator is not working when ARKit Configuration "providesAudioData" is true

According to HIG about Augmented Reality. Haptic is a great tool to enhance the immersive experience.
So I added haptic function using UIFeedbackGenerator.
By the way, I found that haptic is not working.

The reason is providesAudioData that is one of the ARWorldTrackingConfiguration property is true.

After providesAudioData is false. Haptic is working well.

In my application features, recording audio is important. Is there any method using both "providesAudioData" and haptic feedback?
I think it's a bug in ARKit.

Hey kyh951019,

Whenever there is any active AVCaptureSession configured to capture audio, iOS automatically disables haptics as well as other system sounds by default to prevent them from being recorded.

ARSession runs its own internal AVCaptureSession to capture the camera, as well as the microphone when providesAudioData = true.

Unfortunately, that internal session is not exposed through any of the APIs, which prevents us from overriding. Otherwise, you'd be able to do something like AVAudioSession.sharedInstance().setAllowHapticsAndSystemSoundsDuringRecording(true)

UIFeedbackGenerator is not working when ARKit Configuration "providesAudioData" is true
 
 
Q