Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
khanhandpad opened this issue May 12, 2025 · 4 comments

Comments

@khanhandpad
Copy link

khanhandpad commented May 12, 2025

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

@peilinok
Copy link
Contributor

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

@peilinok peilinok added the bug Something isn't working label May 16, 2025
@peilinok
Copy link
Contributor

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
Copy link
Contributor

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 peilinok added feature request and removed bug Something isn't working labels May 20, 2025
Copy link
Contributor

github-actions bot commented Jun 3, 2025

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 github-actions bot added the Stale label Jun 3, 2025
@peilinok peilinok removed the Stale label Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants