Creating your Firebase application to build a video call app
Sendbird works with FCM to send notifications when a call is required from another device.
Best app for video calling android android#
If you want to test this sample using another Android device (and not your dashboard), then you should implement the following methodīut, before doing this, we need to do some Firebase work. Calling from the dashboard Receive a call
Video element we will use for our camera.ī. Do this by clicking the Make Call button on the screen.Ī. Once connected and validated, we are okay to make a call. We also need to establish a WebSocket connection for receiving and making calls.Īuthenticate your USER ID (send an ACCESS TOKEN if necessary) and validate:Īndroid requires that we request permission to access this device’s camera on runtime (users should approve this once only) Once the Connect button is pressed, we call the connect() method to validate our information with Sendbird. (buttons and video elements that we show to the user)Ĭonnect your Firebase video call app to Sendbird From here, we initialize our elements on the screen. In Android, everything starts with the onCreate method. We also have a reference to our objects on screen (buttons and video elements)Īndroid also requires that we request permission to the user on runtime: Refer to our API in detail for more information: This element is provided by Sendbird and it will hold a reference to our established call with another remote user. One important object to keep global is a DirectCall. For this example, we will refer to the user we created in Part 1.įor Sendbird Calls we will need a unique handler ID (which can be anything you want) Next, specify the CALLEE_ID, this ID is the userId of the person you will be calling. For the simplicity of this example, we will add all of our logic for this screen in the MainActivity.java file.ĭefine your information for connecting to Sendbird: Your Application ID, any of your USER IDs, and user’s ACCESS TOKEN if necessary.Implementing Firebase video calls on Android