Video calls

Integrate Nabla video calls in your messaging experience

📘

This guide assumes that you already integrated the rest of the messaging features in your app, and you want to add video calls. If that's not the case, follow the setup guide.

Video calls are complementary to the messaging and/or the scheduling features and are not standalone, make sure you integrate at least one of these first.

Messaging Video call SDK dependency

Install the SDK by running:

yarn add @nabla/react-native-video-call

or

npm install --save @nabla/react-native-video-call

And then run pod install in your ios directory, in order to install the native dependencies.

Set up video call module

The next step is to set up the NablaVideoCallModule when you init the NablaClient:

await NablaMessagingClient.initializeMessagingModule();
await NablaVideoCallClient.initializeVideoCallModule();
await nablaClient.initialize("YOUR_API_KEY");

Build and run your app, you should now be able to receive video call CTAs in a conversation and answer them.

⚠️

iOS Specific

In order to make the video call work, you must fill your info.plist with the key NSMicrophoneUsageDescription and NSCameraUsageDescription.

Your first video call

From the Nabla console, a provider can now send a video call CTA that the patient can tap to join the call.

The patient will have to accept the Microphone and Camera permissions and will then be able to join the call.


Did this page help you?