tencent cloud

Cloud Contact Center

Announcement
What's New
Cloud Contact Center Terminology Update
What is Tencent Cloud Contact Center
Overview
Feature List
Terms Introduction
Handling Firewall Restrictions
AI Voicebot
Billing Guide
Voice Call Billing Overview
Desk Billing Overview
View Billing
Refund Policy
New User Guide
Voice Guide
Desk Guide
Use Case
Inbound: Customer Experience
Outbound: Telemarketing
Auto Dialer: Voice Notification
Integration Use Case (SDK)
Administrator Guide
Voice Guide
Desk Guide
Member Guide
Voice Guide
Desk Guide
AI Voice Agent Guide
Introducing AI Voice Agent
AI Voice Agent Practical Tutorial
Set Up Your AI Voice Agent
Activate AI Voice Agent Call
AI Voice Agent Call Logs
Developer Guide
SDK Development Guide
Data Push
Voice API Reference
History
Introduction
API Category
Making API Requests
Agent APIs
Skill Group APIs
Number APIs
Dual Call APIs
Predictive Outbound Call APIs
SIP Phone APIs
Call Service Record APIs
Billing APIs
Other APIs
Outbound Call APIs
Speech Intelligent Agent APIs
Data Types
Error Codes
Desk API Reference
API Reference
Callback Configuration
FAQs
Data Deletion Guide
Legal
Privacy Policy
Data Processing And Security Agreement
Service Level Agreements
TENCENT CLOUD CONTACT CENTRE TERMS OF USE
Glossary
Contact Us

iOS

PDF
フォーカスモード
フォントサイズ
最終更新日: 2025-01-09 15:23:21

iOS Demo Quick Run

Tencent Cloud Contact Center iOS SDK enables agents to handle calls via PC, SIP phones, or mobile. This guide shows how to quickly set up and run the iOS demo.

Developer Environment Requirements

Xcode 9.0+.
iPhone/iPad with iOS 9.0+: Device must run iOS 9.0 or later.
Valid developer signing: Proper developer certificates and provisioning profiles must be set up for testing on a real device.

Prerequisites

You have activated Cloud Contact Center application.

Key Concepts

1. SdkAppId: A unique application ID created in Cloud Contact Center console. Each Tencent Cloud account can create up to 20 TCCC applications.
2. UserID: The member ID added in the Tencent Cloud Contact Center, usually an email address. For first-time setup, the admin account and password can be found in the Internal Message (sub-accounts must subscribe to TCCC product notification). Each SDKAppID supports multiple UserIDs, and additional licenses can be purchased at Agent Purchase.
3. SecretId and SecretKey: Developers need credentials to call the Cloud API. SecretId and Secretkey can be created in the Tencent Cloud console.
4. Token: A login credential obtained via CreateSDKLoginToken API. The app requests real-time tokens from your server, which stores the generation code and encryption key.

Steps

Step 1: Download Souce Code 'tccc-agent-ios-example'

Step 2: Configure Project File 'tccc-agent-ios-example'

1. Open debug/GenerateTestUserToken.h file.
2. Set parameters in the GenerateTestUserToken.h file:
USERID: Agent account, format : xxx@qq.com
SDKAppID: Cloud Contact Center SDKAppId, which needs to be replaced with your own account's SDKAppId
SECRETID: The ID of the encryption key used to calculate the signature
SECRETKEY: The key of the encryption key used to calculate the signature



Caution:
Do not include the token generation code in your app's production version for the following reasons
The provided code is for testing basic SDK features only and is not secure for production. SECRETKEY in client-side code can be easily reverse-engineered, and web code is even more vulnerable. If your key is leaked, attackers can generate valid tokens and misuse your Tencent Cloud resources.
Safer approach is to place the token generation code and encryption key on your server. The app should request real-time tokens from your server as needed. This method is more secure, as breaching a server is significantly harder than cracking a client-side app. For more details, see Creating SDK Sign in Token

Step 3: Compile and Run the Demo

Open the source code project tccc-agent-ios-example with Xcode and click Run.
1. Click Obtain Token > Log In.
2. Click Outbound Call and start a call.

Showcase

The basic features are shown in the figure below:




ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック