QLPreviewController doesn't ask for camera permission when previewing AR files

Our app uses QLPreviewController for previewing files. We've recently discovered that previewing AR (reality) files bypasses accessing the device’s camera without the app first requesting if it can use the device’s camera.

Answered by DTS Engineer in 712540022

QLPreviewController renders the 3d model (.reality or .usdz) files on top of the camera stream outside of your process, and so your app does not have any access to the camera stream.

There is no camera permission prompt in this scenario because your app does not have access to the camera stream.

This is similar to how the PHPickerViewController runs "out-of-process", and so apps that use it do not need to request photo library access from the user.

Accepted Answer

QLPreviewController renders the 3d model (.reality or .usdz) files on top of the camera stream outside of your process, and so your app does not have any access to the camera stream.

There is no camera permission prompt in this scenario because your app does not have access to the camera stream.

This is similar to how the PHPickerViewController runs "out-of-process", and so apps that use it do not need to request photo library access from the user.

QLPreviewController doesn't ask for camera permission when previewing AR files
 
 
Q