I noticed that none of the video calling apps except Facetime allows you to do a video call/chat when in background through PIP.
How did Facetime achieve it? Is it a private API that we can’t use?
I have tried to search blogs, forums, StackOverflow, the official documentation, but I haven't seen a definitive answer.
I'm skeptical because this official doc mentions the following, but it didn't specify PIP there:
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.