Why use Sendbird?
- Messaging interface and system: Use Sendbird’s chat interface and features instead of building yours from scratch.
- Real-time push: Deliver push notifications to Android and iOS devices using Sendbird.
- JavaScript Bridge API: Initialize the SDK, manage users, channels, permissions, and UI from your web layer.
When to use this plugin
What you’ll do
Use this section as a fast navigation map into the full setup and implementation details:- Configure Sendbird and push: Complete plugin platform setup: retrieve your Application ID, gather APNS (iOS) and FCM (Android) credentials, and enable push with those credentials in the Sendbird dashboard.
- Enable and configure in Median: In Median App Studio configuration, enable the plugin, review the configuration options (including the optional Advanced Configuration), and for Android, upload
google-services.jsonas described under Android:google-services.jsonin that section. - Implement the bridge: Use website configuration (JavaScript Bridge) for SDK initialization, push permission, users, channels, and Sendbird UI (
showUI/showChannelUI/ close callback). - Validate your flow: Use create group channel and show channels UI and enter channel to confirm end-to-end behavior.
- Test and resolve issues: Work through Testing and Troubleshooting.
Prerequisites
- A Median app with the JavaScript Bridge enabled
- A Sendbird application and its Application ID (from the Sendbird dashboard)
- For Apple Push Notification service (iOS): App Bundle ID (see Median iOS Bundle ID),
.p8or.p12authentication token (Register iOS app with APNS ), Key ID, Team ID, and SSL certificate type - For Firebase Cloud Messaging (Android): FCM service account key (HTTP v1) (generate a new private key under Project settings → Service accounts in the Firebase console)
- For Android push:
google-services.jsonuploaded in Median App Studio (Build & Deploy), and the FCM service account key (HTTP v1) configured in the Sendbird dashboard (see setup steps below)
Key concepts
The following terms will help you implement Sendbird effectively: Sendbird Application ID (appId): Identifies your Sendbird application. The SDK needs it to initialize; it is shown in your Sendbird dashboard (see Sendbird setup).
Push credentials (APNS / FCM): Values you add in the Sendbird dashboard under Settings → Push Notifications so Sendbird can send pushes to your iOS and Android apps.
Group channel: A channel where multiple users chat. Creating one returns a channelUrl you can use to open the channel in the UI.
Distinct channel (isDistinct): When true, if a matching channel already exists, that channel is reused instead of creating a duplicate.
Important considerations
- If you need help locating push or Firebase values, contact Median support.
- Android FCM requires
google-services.jsonin the app and FCM configuration in the Sendbird dashboard (including the FCM service account key (HTTP v1)).
Integration guide
Plugin platform setup
Configure Sendbird and push outside Median before or in parallel with the App Studio settings.Retrieve your Sendbird application ID
Sendbird’s SDK requires the Application ID of your Sendbird application to initialize. You can find it in the dashboard of your Sendbird application.
Sendbird – find the Application ID
Set up Sendbird push notifications (APNS and FCM)
To deliver Sendbird push notifications to an app, you need the following credentials. For Apple Push Notification service (iOS):- App Bundle ID: Median iOS Bundle ID
.p8or.p12authentication token — Register iOS app with APNS- Key ID
- Team ID
- SSL certificate type
- Service account key (HTTP v1) — you can generate a new private key under Project settings → Service accounts on your Firebase console
Sendbird dashboard: enable push and add credentials
In the dashboard of your Sendbird app:- Navigate to Settings → Push Notifications.
- Enable push notifications.
- Add your push notification credentials.

Sendbird – push notification settings
Median App Studio configuration
Enable the plugin
- In App Studio, open the Native Plugins tab and enable the Sendbird plugin.

App Studio – enable the Sendbird plugin
Configuration options
Android: google-services.json
Firebase Cloud Messaging (FCM) requires embedding a google-services.json file in the app to send Android push notifications. Upload this file in the Build & Deploy tab of App Studio.

App Studio – add google-services.json
Website configuration (JavaScript Bridge)
Unless noted, you may provide a callback or use the promise returned by the call.Initialize the SDK
Initialize the Sendbird SDK using theappId of your Sendbird application. Once initialized, the appId is saved and the SDK initializes automatically on the next app start. The appId lets you reference users and channels for that Sendbird application. See the Sendbird dashboard screenshot in setup for locating appId.
appId (string) — Sendbird Application ID.
Verify SDK initialization
Request push notification permission
Request push notification permission. On iOS and Android 13+, a system dialog is shown. On Android 12 and below, permission is granted without user input.Check push notification permission status
Check whether push notification permission has been granted or denied.Sign in or register users
Sign in a user on the Sendbird application usinguserId. If the user doesn’t sign out, they stay signed in on future app starts. If userId does not exist, a new user is registered.
userId (string).
Get user ID
Returns theuserId of the signed-in user.
Check user connection
Check whether the user is connected to the Sendbird server after signing in.Update user profile
Update the nickname and profile image URL of the signed-in user.nickname (optional string), profileImageUrl (optional string), callback (function).
Sign out a user
Sign out the current user: disconnects from Sendbird, removes user details from the app, and unregisters push notifications.Disconnect user session
Disconnect the current session. The user remains signed in and details stay saved; the app continues to receive push notifications.Create group channel
Creates a group channel. Returns success and the channel URL.Show channels UI
Displays Sendbird’s messaging UI with the user’s group channels. Users can enter channels, create channels, and leave the UI.
Sendbird demo app – show channels UI
Show channels UI and enter channel
Opens Sendbird’s UI and enters a channel by URL.url (string) — channel URL.

Sendbird demo app – show channels UI and enter channel
Close UI callback
Define this function on your webpage to run when the user closes the Sendbird UI:Testing
Use this checklist to ensure Sendbird is working correctly in your app:Basic functionality
- Sendbird plugin is enabled in Median App Studio and a new build has been generated
-
median.sendbird.initialize(appId)completes andisInitializedreturnsinitialized: truewith the expectedappId -
setUserIdsigns in (or registers) the expected user;getUserIdreturns the same id -
showUIopens Sendbird’s channel list UI without JavaScript errors
Push and permissions
-
promptNotificationshows a permission dialog on iOS and Android 13+ where applicable -
notificationEnabledreflects the system permission state after the user responds - Sendbird dashboard push settings include the correct APNS and/or FCM credentials
- Android:
google-services.jsonis present via App Studio Build & Deploy
Channels and UI
-
createGroupChannelreturnssuccessand achannelUrlwhen inputs are valid -
showChannelUIopens the intended channel using thatchannelUrl - Closing the Sendbird UI triggers
median_sendbird_uiclosedwhen defined
Session behavior
-
isConnectedreflects connection after sign-in -
logoutclears the session and unregister behavior matches expectations -
disconnectends the session while user details remain and push can still apply (per documentation)
Troubleshooting
Where do I get APNS or Firebase / FCM values?
Where do I get APNS or Firebase / FCM values?
For iOS follow Apple’s APNS registration guide , and for Android, go to Project settings → Service accounts to generate your credentials in your Firebase account.
Push notifications are not arriving
Push notifications are not arriving
Confirm push is enabled in the Sendbird dashboard (Settings → Push
Notifications), credentials are added, and for Android that
google-services.json is uploaded in App Studio and the FCM service account
key (HTTP v1) is set in Sendbird (as described in this guide).Android build or FCM issues
Android build or FCM issues
Verify
google-services.json is uploaded under Build & Deploy and that FCM is configured in Sendbird, not only in Firebase alone.Still having trouble?
For issues related to Sendbird’s own configuration, permissions, or
platform-specific behavior outside of Median, refer to Sendbird’s integration
documentation
.