[iPad OS] The camera fails to initialize when the app is running in Split View or Slide Over mode on iPad.
Is your feature request related to a problem? Please describe. I’m using the Agora Flutter SDK to build a video call app on iOS. When the app runs in Split View or Slide Over mode on iPad, the camera cannot be started. This is likely due to the missing isMultitaskingCameraAccessEnabled = true setting on the underlying AVCaptureSession.
Describe the solution you'd like It would be helpful to have a method exposed in the Flutter SDK to enable isMultitaskingCameraAccessEnabled on iOS, or ensure it is enabled by default in supported environments.
Describe alternatives you've considered
Additional context
agora 6.5.1 iPad Gen 10
@khanhandpad Thank you for your feedback, we will try to reproduce this first.
Hi @khanhandpad
We have successfully reproduced the issue on our end. Our team is actively working on a fix, and we will notify you as soon as the solution is implemented.
Hi @khanhandpad According to https://developer.apple.com/documentation/avkit/accessing-the-camera-while-multitasking-on-ipad?language=objc
-
earlier than iOS 16, you should not only add
com.apple.developer.avfoundation.multitasking-camera-accessbut also addiPad Camera Multitasking capabilityinto your app which need to get permission from Apple team.Important Apps that have a deployment target earlier than iOS 16 require the com.apple.developer.avfoundation.multitasking-camera-access entitlement to enable accessing the camera while multitasking.
-
after iOS 16, we will support to enable multitasking with the capture session, which will be supported in 6.6.0
This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days.