Get Started with mesibo

Estimated reading time: 5 minutes

mesibo is a powerful real-time communication platform to quickly add robust real-time messaging, group chat, voice, and video calls, conferencing and chatbot into your mobile and web applications.

In this short introduction tutorial, you will learn to use various mesibo APIs for messaging and calls for all the supported platforms. Once you complete these basic tutorials, you will be ready to create more complex apps, for example, messaging app (like Whatsapp) or multiparty Conferencing app (like Zoom).

You can download the source code of all the tutorials from our Github repos to quick-start your development! In addition to that, you can also download the source code of our apps like Open-Source Messenger, Open Source Conferencing to quick-start your development! You can download mesibo source code, rebrand or modify it in any way you like, or deploy it commercially with zero restrictions.

Let’s get started.

Create an Account

Before you get started, sign-up to get a free mesibo account. This is a one-time activity, and you can use this account to build unlimited apps. Click here to create your account.

Create Account

Get Started

mesibo makes it extremely simple to enable real-time communication like messaging and calls between your users, in just three steps, your app will be able to send and receive messages, calls and conference calls.

  1. Create a mesibo user token

  2. Initialize mesibo

  3. Start sending and receiving messages, make calls & conferences

That’s it. Let’s get into details.

Step-1: Create a User Token

You need to create an authentication token for each of your users so that they can log in to the mesibo servers and use mesibo features like messaging, calls, conferencing, etc. We will learn more about creating user tokens, in the next section

This user token is also called the access token. Once you create this token, you need to pass it to your app so that it can initialize mesibo real-time APIs with this token to send and receive messages or to make calls, as described in the next section.

The best time to create this token is when a user logs in to your app using whatever login mechanism you are using. On successful login, create a mesibo access token and send it along with your other payloads. We have described this in detail in the Authentication section.

How mesibo works

Step-2: Initialize mesibo

Once you have created a user token, you need to initialize mesibo with it. The mesibo initialization is very simple and you only need to perform a few steps:

  1. initialize mesibo real-time API with user token, using setAccessToken() API.

  2. Specify the name of the database where mesibo will store all the messages, using setDatabase() API

  3. Start mesibo using start() API

That’s it. Your app will start connecting now and ready to send and receive messages, make calls, conferencing, etc.

Note that, Mesibo manages connection and reconnection every time your device connects to the network and hence you don’t need to worry about it. Whenever your app goes online or offline Mesibo_OnConnectionStatus will be called. You can even send messages when your device is not connected to the network and mesibo will send it automatically when it finds the connection next.

Step-3: Use Real-Time APIs to send messages and make Calls & Conferences

Once mesibo is initialized, your app is ready for 1-to-1 messaging, group messaging, voice & video calls, conferencing, chatbot, etc. mesibo Real-Time APIs have two components:

  1. Real-Time Functions which your app will call to perform various tasks
  2. Real-Time Callbacks which mesibo API will call to inform you for various events.

Real-Time Functions

Your app needs to call these functions to perform various operations like initializing mesibo with the user token, sending messages, making calls, etc. For example,

  • to set the access token, user setAccessToken
  • to send a text message, use sendMessage
  • to send a file, use sendFile
  • to read messages from the database, use read

Real-time Callbacks

Since your app can receive messages or calls anytime, you instruct mesibo to let your app know as soon as it happens. You can do it by passing a Callback object to mesibo (using the addListener function). When a particular event occurs, mesibo will invoke an appropriate callback to let your app know about the event. For example,

  • when a message is received, Mesibo_OnMessage will be called
  • when a message is sent, delivered, or read Mesibo_OnMessageStatus will be called
  • when a call is received MesiboCall_OnIncoming will be called
  • when your app goes online or offline Mesibo_OnConnectionStatus will be called
  • ..., etc.

Here, we have provided a brief overview of mesibo APIs and we will quickly learn more about using these APIs in the next sections. For a more detailed explanation of how mesibo works, see Basic Concepts of mesibo

Next up in this tutorial series, we will learn how to create user tokens. Later, we will build your first mesibo app using messaging and call API.

Create User Tokens >>

communication platform, chat api, chat sdk, concepts, how chat api works, get started, setup, orientation, containers, messaging, group chat, audio call, video call, chat app, chat app ui