Agora-Flutter-SDK icon indicating copy to clipboard operation
Agora-Flutter-SDK copied to clipboard

[iPad OS] The camera fails to initialize when the app is running in Split View or Slide Over mode on iPad.

Open khanhandpad opened this issue 7 months ago • 4 comments

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 avatar May 12 '25 05:05 khanhandpad

@khanhandpad Thank you for your feedback, we will try to reproduce this first.

peilinok avatar May 12 '25 12:05 peilinok

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.

peilinok avatar May 20 '25 02:05 peilinok

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-access but also add iPad Camera Multitasking capability into 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

peilinok avatar May 20 '25 03:05 peilinok

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.

github-actions[bot] avatar Jun 03 '25 08:06 github-actions[bot]