I'm developing an iPhone screen-recording application that simultaneously records the front-facing camera and displays the live camera feed using Picture in Picture while the user navigates other apps.
The implementation uses AVFoundation (AVCaptureSession) for camera capture and a system Picture in Picture controller for the floating window.
I've encountered the following behavior on a physical iPhone:
With voip declared in UIBackgroundModes, isMultitaskingCameraAccessSupported returns true, and the front camera continues capturing while another app is foregrounded.
Without voip, isMultitaskingCameraAccessSupported returns false.
When the application enters the background, the capture session is interrupted and camera frames stop.
Screen recording and the Picture in Picture window continue, but the camera feed freezes or becomes blank.
Apple App Review has confirmed that declaring voip without actual VoIP functionality is not permitted under Guideline 2.5.4.
I understand and respect that restriction and do not want to misuse background modes.
My question:
Is there a supported public API, entitlement, or configuration that allows a non-VoIP iPhone application to continue capturing front-camera video while another application is in the foreground?
Does Picture in Picture provide any supported mechanism for this use case, or is multitasking camera capture unavailable to non-VoIP applications on iPhone?
I'm looking for a supported implementation rather than a workaround that violates App Review guidelines.
Any guidance from Apple's AVFoundation engineers would be greatly appreciated.
2
0
69