Skip to main content
Enable participants to invite others to join a call by sharing a meeting link. The share invite button opens the platform’s native share sheet, allowing users to send the invite via any messaging app, email, or social media.

Overview

The share invite feature:
  • Generates a shareable meeting link with session ID
  • Opens the native share sheet (Android and iOS)
  • Works with any app that supports text sharing
  • Can be triggered from the default button or custom UI

Prerequisites

  • CometChat Calls SDK integrated (Setup)
  • Active call session (Join Session)
  • share_plus package (or equivalent) for native sharing

Step 1: Enable Share Button

Configure session settings to show the share invite button:

Step 2: Handle Share Button Click

Listen for the share button click using ButtonClickListener:

Create the meeting invite URL and open the share sheet using the share_plus package:

Custom Share Message

Customize the share message with more details:

To allow users to join directly from the shared link, implement deep link handling in your Flutter app. Add deep link configuration for both platforms: Android — Add intent filters to android/app/src/main/AndroidManifest.xml:
iOS — Add Associated Domains in Xcode and configure ios/Runner/Info.plist:

Custom Share Button

If you want to use a custom share button instead of the default one, hide the default button and implement your own:

Complete Example