Skip to main content
The CometChat Calls SDK supports viewing screen shares from other participants. Screen sharing initiation on React Native requires platform-specific configuration.

View Screen Shares

When a participant shares their screen, the SDK automatically displays it. Listen for screen share events:

Start Screen Sharing

Start sharing your screen:

Stop Screen Sharing

Stop sharing your screen:

Screen Share Events

Local Screen Share

Button Click Event

iOS Configuration

Enable Broadcast Upload Extension

To enable screen sharing on iOS, you need to add a Broadcast Upload Extension:
  1. In Xcode, go to File > New > Target
  2. Select Broadcast Upload Extension
  3. Name it (e.g., ScreenShareExtension)
  4. Set the same Team and Bundle Identifier prefix as your main app

Configure App Groups

  1. Select your main app target
  2. Go to Signing & Capabilities
  3. Add App Groups capability
  4. Create a new group (e.g., group.com.yourcompany.yourapp)
  5. Repeat for the Broadcast Upload Extension target

Update Info.plist

Add to your extension’s Info.plist:

Android Configuration

Add Permissions

Add to your AndroidManifest.xml:

Configure Foreground Service

For Android 10+, screen sharing requires a foreground service. Add to your AndroidManifest.xml:

Pin Screen Share

Pin a participant’s screen share to the main view:

Layout Behavior

When screen sharing starts:
  • The SDK automatically switches to Sidebar layout
  • The screen share is displayed in the main view
  • Other participants appear in the sidebar
When screen sharing stops:
  • The layout returns to the previous state (if it was programmatically set)

Complete Example