Get Started with mesibo

Estimated reading time: 3 minutes

mesibo is a powerful real-time communication platform to quickly add robust real-time messaging, group chat, voice, and video calls, conferencing 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 repo 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, you only need to follow two steps:

Step-1: Create User Tokens

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: Use Real-Time APIs to send messages and make calls

Your apps need to use the access token created in Step-1 to initialize mesibo Real-Time APIs (e.g., for Android, iOS, Web, C++, Python, etc) to use 1-to-1 messaging, group messaging, voice & video calls, conferencing, chatbot, etc.

mesibo Real-Time APIs have two components:

  1. Real-Time Functions
  2. Real-Time Callbacks

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