Overview
The share invite feature:- Generates a shareable meeting link with session ID
- Opens iOS’s native share sheet
- 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)
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 usingButtonClickListener:
Step 3: Generate and Share Link
Create the meeting invite URL and open the share sheet:Custom Share Message
Customize the share message with more details:Deep Link Handling
To allow users to join directly from the shared link, implement deep link handling in your app.Configure Universal Links
Add Associated Domains capability in Xcode and configure yourapple-app-site-association file on your server.
Handle Deep Link
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
Related Documentation
- Events - Button click events
- Session Settings - Configure share button visibility
- Join Session - Join a call session