Skip to main content
Picture-in-Picture (PiP) mode allows users to continue their call in a floating window while using other apps. This feature requires platform-specific configuration.

Enable Picture-in-Picture

Enable PiP mode programmatically:

Disable Picture-in-Picture

Exit PiP mode and return to full-screen:

Listen for PiP Events

iOS Configuration

Enable Background Modes

  1. Open your project in Xcode
  2. Select your target and go to Signing & Capabilities
  3. Add Background Modes capability
  4. Enable Audio, AirPlay, and Picture in Picture

Info.plist

No additional Info.plist entries are required for PiP on iOS.

Automatic PiP

iOS automatically enters PiP mode when:
  • The user presses the home button during a video call
  • The user swipes up to go to the app switcher

Android Configuration

Enable PiP Support

Add PiP support to your main activity in AndroidManifest.xml:

Minimum SDK

PiP requires Android 8.0 (API level 26) or higher. Add to your build.gradle:

Handle PiP Mode Changes

In your React Native activity, handle PiP mode changes:

Complete Example

Auto-Enable PiP on Background

Automatically enable PiP when the app goes to background:

Platform Considerations

iOS

  • PiP is available on iOS 14.0 and later
  • Works automatically when the app enters background
  • User can resize and move the PiP window

Android

  • PiP requires Android 8.0 (API level 26) or higher
  • Must be explicitly enabled in the manifest
  • PiP window has fixed aspect ratio