Products
Solutions
Developers
Demo
Pricing
Company

Create an instant messaging and audio/video calling app by cloning WhatsApp-for Android

20 min read
Dec 31, 2024

Create an instant messaging and audio/video calling app by cloning WhatsApp-for Android

Create an instant messaging and audio/video calling app by cloning WhatsApp-for Android

Welcome to the WhatsApp Clone project! This guide will lead you through creating a feature-rich instant messaging application, similar to the popular WhatsApp. Our project utilizes Tencent's Chat UIkit and CallKit components to implement the following core features:

  • One-to-one real-time text chat
  • One-to-one audio calls
  • One-to-one video calls
  • Sending images and files
  • Online status display

WhatsApp Clone focuses on user experience and data security, employing advanced encryption technology and supporting cross-platform use. Whether you're an individual developer or an enterprise user, this guide will provide you with the necessary knowledge to build a powerful, secure, and efficient instant messaging solution.

Let's embark on this exciting development journey!

0. General Guide

https://trtc.io/document/39386

This document is a beginner's guide for Tencent Real-Time Communication (TRTC), providing a clear onboarding path for developers who wish to integrate TRTC product features. It covers product introduction, product experience, SDK integration, and other guidance. Reading this document will help developers quickly implement TRTC product functionalities.

1. Introduction to TRTC Basic Concepts 

https://trtc.io/document/37714?&

This document aims to introduce some basic concepts that developers may encounter when using the Real-Time Audio and Video (TRTC) service, such as SDKAppID, room, etc. Reading this document can help developers quickly understand the key concepts of TRTC, laying the foundation for smooth integration and use of video call functionality.

2. Quick Overview of Features

https://trtc.io/zh/document/64301?platform=web&product=call

This document introduces WhatsApp Clone, a cross-platform instant messaging project that replicates WhatsApp's core features. It utilizes Tencent's components to provide chat and high-quality audio/video call capabilities across multiple platforms. The project emphasizes user data security, offers various advanced features, and includes comprehensive management tools. The document outlines key features, provides quick start guides for different platforms, and offers contact information for support.

https://github.com/Tencent-RTC/whatsapp-clone/blob/main/Android/README.md

This guide will lead you through just a few simple steps to get the WhatsApp clone application up and running, allowing you to experience basic features such as one-to-one real-time text chat, one-to-one audio calls, one-to-one video calls, sending images and files, and displaying online status.

4. VOIP Notification:

https://trtc.io/document/50999?platform=android&product=call

This document provides a comprehensive guide on implementing VOIP (Voice over IP) Push notifications for iOS applications. It covers the entire process from obtaining a VOIP Push certificate from Apple's developer center to integrating it into an app using Tencent's Chat console and TUICallKitVoIPExtension component. The guide explains how to configure project settings, upload certificates, and implement the necessary code for handling VOIP calls. It also includes instructions on initiating VOIP calls, managing calls from system call records, and troubleshooting common issues. The document emphasizes the importance of proper certificate management and project configuration to ensure successful VOIP Push functionality in iOS applications, highlighting its role in achieving system-level call features.

5. Implementation Guide for Specific Features

  • One-to-one real-time text chat

https://trtc.io/document/45914?platform=android&product=chat&menulabel=uikit#2275ed18-b989-4db4-aa16-1e8a2215a9f4

This document provides step-by-step instructions for implementing one-to-one real-time text chat.

  • One-to-one audio call

https://trtc.io/document/60417?platform=android&product=call#9a081615-451a-4fc8-ba97-e787116f7a75

This document provides step-by-step instructions for implementing one-to-one audio calls.

  • One-to-one video call

https://trtc.io/document/61224?platform=android&product=chat&menulabel=uikit

This document provides step-by-step instructions for implementing one-to-one video calls.

  • Sending images and files

https://trtc.io/document/45914?platform=android&product=chat&menulabel=uikit#2275ed18-b989-4db4-aa16-1e8a2215a9f4

This document provides step-by-step instructions for implementing the sending of images and files.

  • Online status display

https://trtc.io/document/59435?platform=android&product=chat&menulabel=uikit

This document provides step-by-step instructions for implementing online status display.

6. Console Usage Guide

https://trtc.io/document/39077?product=consoleguide

This document primarily introduces the creation and management process of Tencent RTC (Real-Time Communication) applications. It provides detailed instructions on how to create a new application in the console, including steps such as selecting a product, setting the application name, and choosing the data storage region. The document also describes how to view and manage created applications, including viewing basic application information, SDKAppID, secret key, and other important data. Additionally, it briefly introduces application version types, service status, and some related configuration options. Overall, this is a user-oriented operation guide aimed at helping users effectively use the Tencent RTC console to manage their real-time audio and video projects.

https://trtc.io/document/35166?product=call&platform=web

This document introduces the user authentication mechanism of Tencent RTC service, focusing on explaining the concept and generation method of UserSig. It provides detailed instructions on how to generate UserSig at different stages of development and offers sample code in various programming languages. For developers, this authentication mechanism enhances security, protects resources and privacy, while providing flexibility and multi-language support, helping to control costs and simplify the development process.

8. Privacy Terms

https://trtc.io/document/48827?product=privacysla

This privacy policy addresses the privacy concerns most important to developers, such as whether user information, usage data, and other data will be stored by TRTC, and how it will be utilized. It helps developers understand how users' personal information will be processed and protected when integrating and using video call functionality.

9. Data Processing and Security Agreement

https://trtc.io/document/48828?product=privacysla

This agreement provides developers with clear data processing and security guidelines, covering the issues of most concern to developers, such as whether user data passing through the TRTC service provider can be guaranteed not to leak during transmission, and how TRTC's own data security capabilities are. The content in this agreement helps ensure the compliance and security of video call functionality.

10. Purchase Guide Section

Prepaid Package Guide

Currently, TRTC's billing adopts a prepaid package + postpaid model, which can bring you flexible cost management and budget control, ensuring that you can effectively estimate and control expenses when using the service. For details, please see the Billing Overview document

Prepaid Packages

TRTC's prepaid packages are divided into Starter and Official packages.

The Starter package helps users launch projects at an extremely low cost. The Call Start plan package costs only $39.9/month, enjoying a 93% discount. Its features are comparable to the standard version and can meet the functional requirements of most scenarios. To purchase, please visit the Starter Package Purchase Guide

The Official package is suitable for customers who are already familiar with our products and wish to continue using them. It includes various plans and usually contains higher resource quotas and priority support to meet users' long-term needs and more complex project requirements. To purchase, please visit the Official Package Purchase Guide

For specific rules, please see the billing documents:

 Starter Package

 Official Package

Postpaid Guide

TRTC defaults to prepaid package billing. When service usage cannot be deducted from a package or exceeds the prepaid package balance, billing will be based on your actual business usage according to the postpaid model. TRTC's postpaid model includes billing items such as audio and video duration, cloud recording and recording delivery, stream mixing and transcoding, and stream pushing. For detailed billing rules, please see the latter part of the Billing Overview document

If you have any questions or need assistance online, our support team is always ready to help. Please feel free to Contact us or join us on Telegram or Discord.

Want to build a similar app or platform? Get your free 10,000 minutes now

Get Started for Free