Instant Development: A Rapid Guide to Building 1v1 Social Applications for iOS
This document will guide you through quickly building a fully functional 1v1 social application for iOS. Through detailed step-by-step instructions, you can easily run the demo and implement core functionalities such as online user chat selection, voice and video calls, and read status features using Swift and iOS-specific frameworks.
By reading this guide, you will be able to:
● Rapidly integrate SDK and API: Master how to complete iOS development environment setup and SDK integration in a short time.
● Implement core 1v1 social features: Understand how to set up the complete process for user selection, chat initiation, and call management in an iOS app.
● Enhance user experience: Learn how to implement read status and other interactive features to improve user engagement, leveraging iOS-specific UI components.
Following this guide, you will quickly construct a stable and efficient 1v1 social application for iOS, meeting the needs of various social networking scenarios.
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. Quickly Run Related Demos
This guide will help you quickly run and experience two core components of a 1v1 social application for iOS within 10 minutes. Through this process, you'll be able to separately experience fully functional user interfaces. The document covers key steps including environment preparation, demo download and configuration, and launching the demos, ensuring you can smoothly experience the features of each component.
This demonstration includes two key products: Chat and Call. You'll need to download and run the demo applications for these two products separately:
Chat:Run Chat Demo Fast - Tencent RTC Documentation
- Main features: Online user selection, text chat, read status
Call:TUICallKit iOS Demo: Quick Start Guide for Audio and Video Calls - Tencent RTC Documentation
- Main features: Voice calls, video calls
By following this guide, you'll be able to set up and run these two demo applications separately, experiencing the core functionalities of a 1v1 social application. This will help you better understand how to combine these features in actual development to create a complete social application experience.
3. Offline message push
Call
Selection Tips :
VoIP (Voice over Internet Protocol) push is specifically designed for instant messaging applications, supporting the ability to wake up the application for voice or video calls even when the app is closed. APN (Apple Push Notification Service) is a push service provided by Apple for sending text, sound, or image notifications, but it cannot directly wake up the application for calls. In short: VoIP push is more suitable for communication applications that require instant response, while APN push is suitable for general notification needs.
● VOIP Notification
iOS VoIP - Tencent RTC Documentation
● APN Notification
iOS Notification - Tencent RTC Documentation
Chat
TIMPush: Instant, Diverse Push Solutions - Tencent RTC Documentation
4. Implementation Guide for Specific Features Selection Tips
When you need to launch a product or service quickly and don't have sufficient time or resources for in-depth customization, solutions with UI can help you go live quickly, reduce development workload, rapidly implement required features, and validate market needs as soon as possible.
When you already have a mature product or application and want to seamlessly integrate call products into your existing system, UI-less solutions can provide a higher degree of freedom and customization. This helps you tailor the integration according to your company's brand standards and user experience requirements.
● Implementation Guide Including UI
Online User Chat Selection
https://trtc.io/document/61219?platform=ios%20and%20macos&product=chat&menulabel=uikit
Voice and Video Calls
https://trtc.io/document/50992?platform=ios&product=call
Read Status
https://trtc.io/document/59440?platform=ios%20and%20macos&product=chat&menulabel=uikit
● Implementation Guide Without UI
Online User Chat Selection
https://trtc.io/document/48326?platform=ios%20and%20macos&product=chat&menulabel=sdk
Voice and Video Calls
https://trtc.io//document/51012?platform=ios&product=call#call
Read Status
https://trtc.io/document/48022?platform=ios%20and%20macos&product=chat&menulabel=sdk
5. Console Usage Guide
Create Tencent RTC Applications - Tencent RTC Documentation
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.
6. Authentication and Security Related Instructions
UserSig: The Security Signature for Tencent Cloud - Tencent RTC Documentation
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.
7. Client Demo or SDK Usage Guide (Integration)
Call:https://trtc.io/document/50992?platform=ios&product=call
Chat:https://trtc.io/document/34307?platform=ios%20and%20macos&product=chat&menulabel=sdk
This document is a client-side quick integration guide, specifically addressing how developers can integrate the Call SDK and Chat SDK component into their applications to implement video call functionality. Through concise steps and sample code, the document guides developers to complete the integration in a short time, quickly achieving video call functionality with a complete UI interface, providing an intuitive and practical reference for client-side development.
8. Privacy Terms
Tencent Real-Time Communication (TRTC) - Features and Usage - Tencent RTC Documentation
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
Tencent Real-Time Communication Feature: Processing and Usage - Tencent RTC Documentation
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. The Chat Start plan package costs only $69.9/month, enjoying a 90% 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 Call Official package, please visit the Official Package Purchase Guide. To purchase Chat Official package, please visit the Official Package Purchase Guide.
For specific rules, please see the billing documents:
● Call: Official Package
● Chat: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.