How to use Twilio in Background mode on iOS

97 Views Asked by At

I have created an application for video streaming in React native, I used this library with latest version: twilio.

In iOS, I can't use the camera when the app is in background mode, I don't know if I used camera in background or not.

Is this possible or not for iOS? Where can I find documentation about this?

1

There are 1 best solutions below

2
On

In iOS, camera does not work when an app goes to background. See more here:

Camera usage is prohibited while in the background. If you attempt to start running a camera while in the background, the capture session sends an AVCaptureSessionWasInterruptedNotification with this interruption reason. If you don't explicitly call the stopRunning method, your startRunning request is preserved, and when your app comes back to foreground, you receive AVCaptureSessionInterruptionEndedNotification and your session starts running.